nextMultipleOf method
Implementation
int nextMultipleOf(int multiplier) {
if (multiplier <= 0) {
throw ArgumentError('Multiplier cannot be zero');
}
final remainder = this % multiplier;
if (remainder == 0) {
return this;
} else {
return this + (multiplier - remainder);
}
}