expYear property

int expYear

getter to retrive the year from expiration string

Implementation

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