hasTime function

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

Matches the time from a HasTime.

Implementation

Matcher hasTime(Object? hour,
        [Object? minute, Object? second, Object? nanosecond]) =>
    allOf(
        hasHour(hour),
        minute != null ? hasMinute(minute) : null,
        second != null ? hasSecond(second) : null,
        nanosecond != null ? hasNanosecond(nanosecond) : null);