hasTime function
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);