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
- EmailValidator
- 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
- NameValidator
- NonValidatingValidator
- PhoneValidator
- PositiveNumberValidator
- RequiredFieldValidator
- YoutubeUrlValidator
Extensions
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 -
isEmailValid(
String value) → bool -
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
- LiteFormValueDeserializer = Object? Function(dynamic value)
-
LiteFormValueSerializer
= FutureOr<
Object?> Function(dynamic value) - used to write custom value serializers / deserializers