flutter_model_form_validation library

Classes

ContainsDateTime
ContainsDateTime validator permits you to check that a datetime value is into an array.
ContainsNumber
ContainsNumber validator permits you to check that a number value is into an array.
ContainsString
ContainsString validator permits you to check that a string value is into an array.
DateTimeRange
DateTimeRange validator permits you to check that a datetime using by declared settings.
Email
Email validator permits you to check that a string value is a valid email.
EqualToDateTime
EqualToDateTime validator permits you to check that a value is equal to the value of another property.
EqualToNumber
EqualToNumber validator permits you to check that a value is equal to the value of another property.
EqualToString
EqualToString validator permits you to check that a value is equal to the value of another property.
FileMimeType
FileMimeType validator permits you to check that a string value is a valid mime type.
FileSize
FileSize validator permits you to check that a string value is a valid size.
FlutterModelFormValidator
@flutterModelFormValidator must be declared on each class you want to submit to validation. You must declared by writing @flutterModelFormValidator of the top of your class.
GreaterOrEqualToDateTime
GreaterOrEqualToDateTime validator permits you to check that a value is greater or equal to the value of another property.
GreaterOrEqualToNumber
GreaterOrEqualToNumber validator permits you to check that a value is greater or equal to the value of another property.
GreaterOrEqualToString
GreaterOrEqualToString validator permits you to check that a value is greater or equal to the value of another property.
GreaterThanDateTime
GreaterThanDateTime validator permits you to check that a value is greater than the value of another property.
GreaterThanNumber
GreaterThanNumber validator permits you to check that a value is greater than the value of another property.
GreaterThanString
GreaterThanString validator permits you to check that a value is greater than the value of another property.
ImageSize
ImageSize validator permits you to check that a string value is a valid image size.
InText
InText validator permits you to check that a string value is into a text.
MembershipPassword
MembershipPassword validator permits you to check that a string value is accordance with declared settings. You must set to true at least one options. In the other case, your validator will always return false.
ModelFormState<TViewModel> BlOcs support
ModelFormState is the parent class of your state class if you want to use BlOcs.
ModelFormUtilities
ModelFormUtilities is a statis class utility that provides methods to validate your form with BlOcs.
ModelState
NotEqualToDateTime
NotEqualToDateTime validator permits you to check that a value is not equal to the value of another property.
NotEqualToNumber
NotEqualToNumber validator permits you to check that a value is not equal to the value of another property.
NotEqualToString
NotEqualToString validator permits you to check that a value is not equal to the value of another property.
NumberRange
NumberRange validator permits you to check that a number using by declared settings.
PhoneNumber
PhoneNumber validator permits you to check that a string value is a valid phone number.
RegularExpression
RegularExpression validator permits you to check that a string value is accordance with provided regular expression.
Required
Required validator permits you to check that a value is provided.
SmallerOrEqualToDateTime
SmallerOrEqualToDateTime validator permits you to check that a value is smaller or equal to the value of another property.
SmallerOrEqualToNumber
SmallerOrEqualToNumber validator permits you to check that a value is smaller or equal to the value of another property.
SmallerOrEqualToString
SmallerOrEqualToString validator permits you to check that a value is smaller or equal to the value of another property.
SmallerThanDateTime
SmallerThanDateTime validator permits you to check that a value is smaller than the value of another property.
SmallerThanNumber
SmallerThanNumber validator permits you to check that a value is smaller than the value of another property.
SmallerThanString
SmallerThanString validator permits you to check that a value is smaller than the value of another property.
StringLength
StringLength validator permits you to check that a string value has a length between two values.
StringRange
StringRange validator permits you to check that a string using by declared settings.
URL
URL validator permits you to check that a string value is a valid URL.
ValidationAnnotation<TValue>
ValidationAnnotation is the parent class for every validators you will create and use.
ValidationError Validation error
This class provides a error report in case of no-validation of the current model or property.
ValidationHelper Validation helpers
ValidationHelper somes utilities for validators

Constants

flutterModelFormValidator → const FlutterModelFormValidator

Enums

PhoneNumberType