formatYear method Null safety

String formatYear(
  1. DateTime date
)

Full unabbreviated year format, e.g. 2017 rather than 17.

Implementation

String formatYear(DateTime date);