getExpiryDate static method

List<int> getExpiryDate(
  1. String value
)

Implementation

static List<int> getExpiryDate(String value) {
  var split = value.split(RegExp(r'(\/)'));
  return [int.parse(split[0]), int.parse(split[1])];
}