MapGetOr extension

on

Methods

getOrElse(String key, dynamic defaultValue) → dynamic

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

Returns the value for the given key, or the result of the defaultValue if there was no entry for the given key.
getOrNull(String key) → dynamic

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

Returns the value for the given key, or null if there was no entry for the given key.