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