inAsyncMethodOrFunction property

bool get inAsyncMethodOrFunction

Implementation

bool get inAsyncMethodOrFunction {
  final body = thisOrAncestorOfType<FunctionBody>();
  return body != null && body.isAsynchronous && body.star == null;
}