[0.1.1]
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
"languageVersion": "3.6"
|
"languageVersion": "3.6"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generated": "2025-02-27T16:09:21.636346Z",
|
"generated": "2025-03-03T14:08:32.247456Z",
|
||||||
"generator": "pub",
|
"generator": "pub",
|
||||||
"generatorVersion": "3.7.0",
|
"generatorVersion": "3.7.0",
|
||||||
"flutterRoot": "file:///C:/Users/micwa/fvm/versions/stable",
|
"flutterRoot": "file:///C:/Users/micwa/fvm/versions/stable",
|
||||||
|
|||||||
20
CHANGELOG.md
20
CHANGELOG.md
@@ -1,21 +1,5 @@
|
|||||||
<!---
|
## 0.1.1
|
||||||
## Guidelines for changelog/git
|
- **FEAT** Added Map Extensions file and `MergeAllMaps` function.
|
||||||
**INIT**: Initial commit in a repo, only committed once.
|
|
||||||
**DOC**: Updates/Refactors in the documents.
|
|
||||||
**CHORE**: Minor fixes and/or architecture enhancements.
|
|
||||||
**DEPS**: Dependency updates and the resulting refactors.
|
|
||||||
**SYNC**: Regular sync commits to ensure perfect syncing of all the development devices (Describes the feature in the working).
|
|
||||||
**TEST**: Adding/Updating test files.
|
|
||||||
**FIX**: Fixing a bug/issue that prevents a functionality.
|
|
||||||
**FEAT**: Add a completely new functionality or extend an existing one in a non-breaking manner.
|
|
||||||
**BREAKING CHANGE**: A [FEAT] but with breaking changes (Is only proposed as FEAT in the git commit).
|
|
||||||
## Version Composition
|
|
||||||
x.y.z
|
|
||||||
* Update z on Deps and Fixes.
|
|
||||||
* Update y on Feat that are large enough.
|
|
||||||
* Update x on BREAKING CHANGE that are a must and to signal phases completed [Alpha - Beta - Stable].
|
|
||||||
-->
|
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
|
|
||||||
- **INIT**: Initial commit in the new repo.
|
- **INIT**: Initial commit in the new repo.
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ Developed, Maintained, and is property of Michael W. Aziz (Micazi)
|
|||||||
- on _List<E>_
|
- on _List<E>_
|
||||||
- **containsAll()** : Checker to see if a list contains all of the other list. ☑️
|
- **containsAll()** : Checker to see if a list contains all of the other list. ☑️
|
||||||
- **getUnique()** : Get unique items only of a supplied list. ☑️
|
- **getUnique()** : Get unique items only of a supplied list. ☑️
|
||||||
|
- on _Map<T,B>_
|
||||||
|
- **mergeAllMaps()** : Merges a list of maps into one with a conditional functionality to approve the merge. ☑️
|
||||||
- on _TextAlignVertical_
|
- on _TextAlignVertical_
|
||||||
- **toAlignment()** : convert a `TextAlignVertical` to an `Alignment` object. ☑️
|
- **toAlignment()** : convert a `TextAlignVertical` to an `Alignment` object. ☑️
|
||||||
- on _BorderRadiusGeometry_
|
- on _BorderRadiusGeometry_
|
||||||
|
|||||||
15
lib/src/map_extensions.dart
Normal file
15
lib/src/map_extensions.dart
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
Map<T, B> mergeAllMaps<T, B>(List<Map<T, B>> maps, {Function(T key, B value1, B value2)? repeatingKeysValueComparer}) {
|
||||||
|
Map<T, B> r = <T,B>{};
|
||||||
|
//
|
||||||
|
for (Map<T, B> m in maps) {
|
||||||
|
m.forEach((T key,B value) {
|
||||||
|
if (!r.containsKey(key)) {
|
||||||
|
r.addEntries(<MapEntry<T, B>>[MapEntry<T,B>(key, value)]);
|
||||||
|
} else {
|
||||||
|
repeatingKeysValueComparer?.call(key, r[key] as B, value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//
|
||||||
|
return r;
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: astromic_extensions
|
name: astromic_extensions
|
||||||
description: The extensions module of the Astromic Presentation System.
|
description: The extensions module of the Astromic Presentation System.
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.6.0"
|
sdk: ">=3.6.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user