getKey<T> method

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

Implementation

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