getKey<T> method

T? getKey<T>(
  1. String key
)

Implementation

T? getKey<T>(String key) {
  try {
    return this[key] as T?;
  } catch (e) {
    return null;
  }
}