MapExtensions extension Null safety

on

Methods

hasValue(dynamic key) bool
toList<T>(dynamic key, T mapper(dynamic item), {List<T>? fallback}) List<T>?
Tries to parse a Map with the provided key into a list returns fallback if the key doesn't exist in the map OR the KVP is not of a list type
tryCast<T>(dynamic key, T mapper(dynamic item), {T? fallback}) → T?