maybe<T> method

T? maybe<T>(
  1. String key
)
inherited

Returns the value stored for key as T, or null when absent or null.

Throws a StateError when key exists with a non-null value that is not assignable to T.

Implementation

T? maybe<T>(String key) => _maybe<T>(_values, key);