Integers extension
Provides functions for working with ints.
See Numbers in Dart for behaviour discrepancies between native and web.
- on
Methods
-
ceilTo(
int factor) → int -
Available on int, provided by the Integers extension
Ceils this to the closest multiple offactor. -
floorTo(
int factor) → int -
Available on int, provided by the Integers extension
Floors this to the closest multiple offactor. -
roundTo(
int factor) → int -
Available on int, provided by the Integers extension
Rounds this to the closest multiple offactor. -
toBool(
) → bool -
Available on int, provided by the Integers extension
If0, returnsfalse, otherwise returnstrue.