isAsync property

bool get isAsync

Whether the create function is async.

Implementation

bool get isAsync {
  return returnType.startsWith(Param.futureType) ||
      returnType.startsWith(Param.streamType);
}