getAndCastSafe<T> method

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

Implementation

T? getAndCastSafe<T>(final String key) {
  try {
    return this[key] as T;
  } catch (_) {}
  return null;
}