NullableUndefineableJSAnyExtension extension
JSUndefined and JSNull are actual reified types on some backends, but
not others. Instead, users should use nullable types for any type that could
contain JSUndefined or JSNull. However, instead of trying to determine
the nullability of a JS type in Dart, i.e. using ?, !, != null or == null, users should use the provided helpers below to determine if it is
safe to downcast a potentially JSNullable or JSUndefineable object to a
defined and non-null JS type.
- on
Properties
- isDefinedAndNotNull → bool
-
read-only
- isNull → bool
-
read-only
- isUndefined → bool
-
read-only
- isUndefinedOrNull → bool
-
read-only