isYears function

bool isYears(
  1. String code
)

Implementation

bool isYears(String code) => <String>[
      'years',
      'year',
      "'year'",
      'a',
    ].contains(code);