utils/exports library

Classes

AlwaysComplainingTestValidator
This validator can be used if you want to test errors in your form I will always return an error
DateOfBirthValidator
FileSize
FileSizeValidator
LiteSerializers
LiteSerializers is a set of built-in serializers that can be used to simplify a work with some types of values
LiteValidator
NonValidatingValidator
PhoneValidator
PositiveNumberValidator
RequiredFieldValidator

Functions

initForms({LiteFormsConfiguration? config}) → void
Just a shorthand for initializeLiteForms
initializeLiteForms({LiteFormsConfiguration? config}) → void
Call it somewhere in the beginning of your app code config allows you to configure the look and feel for all of your form fields by default. Doing this you won't have to set decorations, paddings and other common stuff for your forms everywhere
nonConvertingValueConvertor(Object? value) Object?
The default for all fields. This means that the values is supposed to be accepted as is. If you need to convert the value somehow, write your custom serializer for a particular field

Typedefs

LiteFormValueSerializer = FutureOr<Object?> Function(dynamic value)
used to write custom value serializers / deserializers