Number isInFinite Property


Advertisements

The property returns a Boolean value true if the number is not a NaN or positive infinity or negative infinity.

Syntax

num.isInfinite

Example

void main() { 
   int n = 5000; 
   print(n.isInfinite); 
}  

It will produce the following output

False
dart_programming_numbers.htm
Advertisements