Implementation
DateTime get dateTime {
switch (_constructorType) {
case ConstructorType.components:
return DateTime(_year, _month, _day, _hour, _minute, _second,
_millisecond, _microsecond);
case ConstructorType.utc:
return DateTime.utc(_year, _month, _day, _hour, _minute, _second,
_millisecond, _microsecond);
case ConstructorType.fromMillisecondsSinceEpoch:
return DateTime.fromMillisecondsSinceEpoch(_millisecond, isUtc: _isUtc);
case ConstructorType.fromMicrosecondsSinceEpoch:
return DateTime.fromMicrosecondsSinceEpoch(_microsecond, isUtc: _isUtc);
}
}