toNullable property

TypeCheck<T?> toNullable
inherited

Returns a TypeCheck object for type T?.

If T is nullable, the result will be the same as this.

Implementation

TypeCheck<T?> get toNullable => TypeCheck<T?>();