check method
Implementation
@override
bool check(DateTime field) =>
(start == null ||
field.millisecondsSinceEpoch >= start!.millisecondsSinceEpoch) &&
(end == null ||
field.millisecondsSinceEpoch <= end!.millisecondsSinceEpoch);