getMonthYearByFullExpiration method

List<String> getMonthYearByFullExpiration(
  1. String date
)

Implementation

List<String> getMonthYearByFullExpiration(String date) {
  var dateSplit = date.toString().split("/");

  return 2 == dateSplit.length
      ? [
          date[0],
          date[1]
        ]
      : [];
}