isAsync property
bool
get
isAsync
Whether the constructor function is async.
Implementation
bool get isAsync {
return returnType.startsWith(Param.futureType) ||
returnType.startsWith(Param.streamType);
}