ValidatorUtils class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
hasMonthPassed(
int year, int month) → bool -
hasYearPassed(
int year) → bool -
isAccountValid(
String value) → bool -
isAmountValid(
String? value) → bool -
isBVNValid(
String? value) → bool -
isCardNumberValid(
String? value) → bool -
isCVVValid(
String? value) → bool -
isEmailValid(
String? value) → bool -
isNotExpired(
int year, int month) → bool -
isPhoneValid(
String? value) → bool -
isUrlValid(
String url) → bool -
isValidMonth(
int month) → bool -
isWholeNumberPositive(
String value) → bool -
validateInitializer(
PayInitializer init) → String? - Validates that required the variables of PayInitializer are not null, negative or empty
-
validExpiryDate(
int? expiryMonth, int? expiryYear) → bool - Checks if the card has expired. Returns true if the card has expired; false otherwise