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