futureOr<T> static method

dynamic futureOr<T>(
  1. FutureOr<T>? value
)

Implementation

static dynamic futureOr<T>(FutureOr<T>? value) =>
    value is Future<T> ? Promise.futureToPromise(value) : value;