y property Null safety

Duration y

Short-hand for years

Implementation

Duration get y {
  return Duration(days: (365 * this).toInt());
}