serializer property

LiteFormValueSerializer serializer
final

Allows you to prepare the data for some general usage like sending it to an api endpoint. E.g. you have a Date Picker which returns a DateTime object but you need to send it to a backend in a iso8601 string format. Just pass the serializer like this: serializer: (value) => value.toIso8601String() And it will always store this date as a string in a form map which you can easily send wherever you need

Implementation

final LiteFormValueSerializer serializer;