maybe<T, I> method

T? maybe<T, I>(
  1. String key,
  2. T? parser(
    1. I map
    )
)

Implementation

T? maybe<T, I>(String key, T? Function(I map) parser) => _try(
    key,
    () => containsKey(key) && this[key] != null
        ? parser(this[key] as I)
        : null);