withNullability method
Returns a copy of this type parameter with the specified nullability.
Implementation
@override
TypeParameterType withNullability(bool isNullable) {
if (this.isNullable == isNullable) {
return this;
}
return TypeParameterType(name, bound: bound, isNullable: isNullable);
}