roundToInt method
Converts number to int.
Implementation
int roundToInt({NumberRoundType roundType = NumberRoundType.round}) {
switch (roundType) {
case NumberRoundType.round:
return round();
case NumberRoundType.floor:
return floor();
case NumberRoundType.ceil:
return ceil();
default:
throw Exception('Unknown round type: $roundType');
}
}