withNullability method
Returns a copy of this type alias with the specified nullability.
Implementation
@override
DartType withNullability(bool isNullable) {
if (this.isNullable == isNullable) {
return this;
}
return TypeAliasTypeImpl(
name,
declarationRef,
resolver,
isNullable: isNullable,
typeArguments: typeArguments,
);
}