year abstract method

String year(
  1. int amount, [
  2. bool abbreviated = true
])

Print amount years for the corresponding locale. The unit is abbreviated if abbreviated is set to true.

Implementation

String year(int amount, [bool abbreviated = true]);