StringMapExtensions extension

Extension methods for String-keyed dynamic maps.

on

Methods

formatMap() → String

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns a human-readable string representation of this map with indentation. Audited: 2026-06-12 11:26 EDT
getChildString(String childKey) → String?

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the value for childKey as a String, or null if the key is missing or the value is not a String. Audited: 2026-06-12 11:26 EDT
getGrandchild(String childKey, String grandChildKey) → dynamic

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the nested value at childKey → grandChildKey, or null if either key is missing or the child is not a map. Audited: 2026-06-12 11:26 EDT
getGrandchildString(String childKey, String grandChildKey) → String?

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the nested value at childKey → grandChildKey as a String, or null if either key is missing or the value is not a String. Audited: 2026-06-12 11:26 EDT
getGreatGrandchild({required String childKey, required String grandChildKey, required String greatGrandChildKey}) → dynamic

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the nested value at childKey → grandChildKey → greatGrandChildKey, or null if any key is missing. Audited: 2026-06-12 11:26 EDT
getGreatGrandchildString({required String childKey, required String grandChildKey, required String greatGrandChildKey}) → String?

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the nested value at childKey → grandChildKey → greatGrandChildKey as a String, or null if any key is missing or the value is not a String. Audited: 2026-06-12 11:26 EDT
getValue(String? key) → Map<String, dynamic>?

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns the value for key as a Map<String, dynamic>, or null if the key is missing or the value cannot be converted. Audited: 2026-06-12 11:26 EDT
removeKeys(List<String>? removeKeysList, {bool recurseChildValues = true}) → bool

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns true after removing all keys in removeKeysList from this map.
toKeySorted() → Map<String, dynamic>

Available on Map<String, dynamic>, provided by the StringMapExtensions extension

Returns a new Map<String, dynamic> with keys sorted alphabetically. Audited: 2026-06-12 11:26 EDT