Year.fromDateTime constructor

Year.fromDateTime(
  1. DateTime dateTime
)

Creates a Year instance from a standard Dart DateTime object.

Implementation

factory Year.fromDateTime(DateTime dateTime) => Year(dateTime.year);