getObj<T> static method

T? getObj<T>(
  1. String key,
  2. T f(
    1. Map v
    ), {
  3. T? defValue,
})

get obj.

Implementation

static T? getObj<T>(String key, T f(Map v), {T? defValue}) {
  Map? map = getObject(key);
  return map == null ? defValue : f(map);
}