hasTime function

Matcher hasTime(
  1. Object? hour, [
  2. Object? minute = 0,
  3. Object? second = 0,
  4. Object? nanosecond = 0,
])

Matches the time from a HasTime.

Implementation

Matcher hasTime(Object? hour,
        [Object? minute = 0, Object? second = 0, Object? nanosecond = 0]) =>
    isA<HasTime>()
        .having((t) => t.hour, 'hour', hour)
        .having((t) => t.minute, 'minute', minute)
        .having((t) => t.second, 'second', second)
        .having((t) => t.nanosecond, 'nanosecond', nanosecond);