getValue<T> method

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

Implementation

T? getValue<T>(String key) {
  try {
    return containsKey(key) ? this[key] as T? : null;
  } on Exception {
    return null;
  }
}