withNullability method
Returns a copy of this function type with the specified nullability.
Implementation
@override
FunctionType withNullability(bool isNullable) {
if (this.isNullable == isNullable) {
return this;
}
return FunctionType(
isNullable: isNullable,
parameters: parameters,
typeParameters: typeParameters,
returnType: returnType,
);
}