getObject<T> method

T? getObject<T>(
  1. dynamic key
)

get objet

Implementation

T? getObject<T>(dynamic key) {
  dynamic value;
  if (containsKey(key)) {
    final v = box().get(key);
    if (v is T) value = v;
  }
  return value;
}