roundUp method
Implementation
DateTime roundUp({Duration delta = const Duration(minutes: 15)}) {
return DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch +
(delta.inMilliseconds - millisecondsSinceEpoch % delta.inMilliseconds));
}
DateTime roundUp({Duration delta = const Duration(minutes: 15)}) {
return DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch +
(delta.inMilliseconds - millisecondsSinceEpoch % delta.inMilliseconds));
}