Time.todayAt constructor

Time.todayAt(
  1. int hour,
  2. int minute, [
  3. int second = 0,
  4. int millisecond = 0,
  5. int microsecond = 0,
])

Creates a Time instance for today's date at the specified time.

hour: The hour (0-23). minute: The minute (0-59). second: The second (0-59), defaults to 0. millisecond: The millisecond (0-999), defaults to 0. microsecond: The microsecond (0-999), defaults to 0.

Implementation

factory Time.todayAt(
  int hour,
  int minute, [
  int second = 0,
  int millisecond = 0,
  int microsecond = 0,
]) =>
    Time(DateTime.now().copyWith(
      hour: hour,
      minute: minute,
      second: second,
      millisecond: millisecond,
      microsecond: microsecond,
    ));