floor method Null safety

int floor()

Returns the greatest integer no greater than this.

If this is not finite (NaN or infinity), throws an UnsupportedError.

Implementation

int floor() => value.floor();