withNullability method

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

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