resolve method

T? resolve([
  1. T? or
])

Implementation

T? resolve([T? or]) => resolveOrNull(or) ?? ((this is Future) ? illegalState<T>("Attempting to resolve a future.") : null);