toTime method
Implementation
Time toTime({
bool withMinute = true,
bool withSecond = true,
bool withMillisecond = true,
bool withMicrosecond = true,
}) =>
Time(
hour,
withMinute ? minute : 0,
withSecond ? second : 0,
withMillisecond ? millisecond : 0,
withMicrosecond ? microsecond : 0,
);