isFutureOrFutureOr function

bool isFutureOrFutureOr(
  1. DartType? type
)

Implementation

bool isFutureOrFutureOr(DartType? type) {
  return type != null && (type.isDartAsyncFuture || type.isDartAsyncFutureOr);
}