FLValidator class

Class to access the validation rules, this can be used as FLValidator.rule Or the rule string can be used in a List sesperated with a coma as in required,same:man.v or in a string and seperated with | character as in 'required|same:man'.v List of supported rules can be seen on https://pub.dev/packages/flutter_laravel_form_validation#rules

Constructors

FLValidator()

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 Properties

alphaNumeric String
Ensure a form field value is alpha numeric
getter/setter pair
double String
Ensure a form field value is a double
getter/setter pair
email String
Ensure a form field value is an email
getter/setter pair
interger String
Ensure a form field value is an integer
getter/setter pair
ip String
Ensure a form field value is an ip address
getter/setter pair
lowercase String
Ensure a form field value is lowercase
getter/setter pair
numeric String
Ensure a form field value is numeric
getter/setter pair
required String
Ensure a form field value is required
getter/setter pair
uppercase String
Ensure a form field value is lowercase
getter/setter pair
url String
Ensure a form field value is a url
getter/setter pair

Static Methods

between(num min, num max) String
Ensure a form field value is between min,max
endsWith(dynamic pattern) String
Ensure a form field value ends with pattern
gt(num number) String
Ensure a form field value is numeric and greater than number
gte(num number) String
Ensure a form field value is numeric and is greater than or equal number
inItems(List items) String
Ensure a form field value contains the list of items
lt(num number) String
Ensure a form field value is numeric and lesser than number
lte(num number) String
Ensure a form field value is numeric and is lesser than or equal number
max(num length) String
Ensure a form field value length has a max value specified
min(num length) String
Ensure a form field value length has a min value specified
notInItems(List items) String
Ensure a form field value does not in contain the list of items
regEx(String pattern) String
same(dynamic other) String
Ensure a form field value is same as other
startsWith(dynamic pattern) String
Ensure a form field value starts with pattern