expYear property

int get expYear

getter to retrieve the year from expiration string

Implementation

int get expYear => int.parse(cardExpiry.split('/')[1]) + 2000;