validateExpMonth method

bool validateExpMonth()

Checks whether or not the {@link #expMonth} field is valid.

@return {@code true} if valid, {@code false} otherwise.

Implementation

bool validateExpMonth() {
  return expMonth != null && expMonth! >= 1 && expMonth! <= 12;
}