menu
sugar package
documentation
time.dart
DefaultRoundableDate extension
DefaultRoundableDate extension
dark_mode
light_mode
DefaultRoundableDate
extension
The default implementation for
RoundableDateTime
.
on
DateTime
Methods
ceil
(
int
value
,
TimeUnit
unit
)
→
DateTime
Ceils this
DateTime
to the nearest
value
.
floor
(
int
value
,
TimeUnit
unit
)
→
DateTime
Floors this
DateTime
to the nearest
value
.
round
(
int
value
,
TimeUnit
unit
)
→
DateTime
Rounds this
DateTime
to the nearest
value
.
sugar package
documentation
time
DefaultRoundableDate extension
sugar.time library