This commit is contained in:
2025-03-03 16:10:03 +02:00
parent ec17d94cb9
commit 24cd167754
5 changed files with 21 additions and 20 deletions

View File

@@ -62,7 +62,7 @@
"languageVersion": "3.6"
}
],
"generated": "2025-02-27T16:09:21.636346Z",
"generated": "2025-03-03T14:08:32.247456Z",
"generator": "pub",
"generatorVersion": "3.7.0",
"flutterRoot": "file:///C:/Users/micwa/fvm/versions/stable",

View File

@@ -1,21 +1,5 @@
<!---
## Guidelines for changelog/git
**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.1
- **FEAT** Added Map Extensions file and `MergeAllMaps` function.
## 0.1.0
- **INIT**: Initial commit in the new repo.

View File

@@ -13,6 +13,8 @@ Developed, Maintained, and is property of Michael W. Aziz (Micazi)
- on _List<E>_
- **containsAll()** : Checker to see if a list contains all of the other 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_
- **toAlignment()** : convert a `TextAlignVertical` to an `Alignment` object. ☑️
- on _BorderRadiusGeometry_

View 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;
}

View File

@@ -1,7 +1,7 @@
name: astromic_extensions
description: The extensions module of the Astromic Presentation System.
publish_to: "none"
version: 0.1.0
version: 0.1.1
environment:
sdk: ">=3.6.0"