withNullability method

  1. @override
TypeParameterType withNullability(
  1. bool isNullable
)
override

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);
}