toTime method

Time toTime({
  1. bool withMinute = true,
  2. bool withSecond = true,
  3. bool withMillisecond = true,
  4. bool withMicrosecond = true,
})

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,
    );