getExpiryDate method

List<int> getExpiryDate(
  1. String value
)

Implementation

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