Year.fromDateTime constructor
Year.fromDateTime(
- DateTime dateTime
Creates a Year instance from a standard Dart DateTime object.
Implementation
factory Year.fromDateTime(DateTime dateTime) => Year(dateTime.year);