utils/token_set_utils
library
Functions
-
getTokenSets(Map<String, dynamic> tokens, {required BuilderConfig config, bool includeDefaultSet = false})
→ List<String>
-
Parses token sets from token data and returns a list of all available tokens
sets.
-
getTokensOfType(String type, {required Map<String, dynamic> tokenSetData, Map<String, dynamic>? fallbackSetData})
→ Map<String, dynamic>
-
Returns a map of all tokens for a specific type.
-
hasNestedType(MapEntry<String, dynamic> data, {required String type})
→ bool
-
Check if
data
has any child that has type type
.
-
overrideAndMergeTokenSet(Map<String, dynamic> baseSet, {required Map<String, dynamic> withSet})
→ Map<String, dynamic>
-
Overrides and merges the
baseSet
with withSet
.