isNaN property
bool?
get
isNaN
Whether this number is a Not-a-Number value.
Is true
if this number is the double.nan value
or any other of the possible double NaN values.
Is false
if this number is an integer,
a finite double or an infinite double (double.infinity
or double.negativeInfinity).
All numbers satisfy exactly one of isInfinite, isFinite
and isNaN
.
Implementation
bool? get isNaN => value?.isNaN;