Null

Null (Abstract)

Null<T> is a wrapper that can be used to make the basic types Int, Float and Bool nullable on static targets.

If null safety is enabled, only types wrapped in Null<T> are nullable.

Otherwise, it has no effect on non-basic-types, but it can be useful as a way to document that null is an acceptable value for a method argument, return value or variable.

See: https://haxe.org/manual/types-nullability.html

Type Conversions

From:

  • Null.T

To:

  • Null.T

Metadata

Name Parameters
:forward -