LiteForm class

Inheritance

Constructors

LiteForm.new({Key? key, required String name, bool autoDispose = true, bool autoRemoveUnregisteredFields = true, bool? allowUnfocusOnTapOutside, TranslationBuilder translationBuilder = defaultTranslationBuilder, ScrollController? scrollController, VoidCallback? onPostFrame, required LiteFormBuilder builder})
Wrap your form with this group. Inside you can use any LiteForm fields. Here's the list of basic LiteFormFields ->

Properties

allowUnfocusOnTapOutside bool?
if true it will automatically unfocus any active focus node on tap outside. null by default, which equivalent to true You can also set this globally via a config value passed into a initializeLiteForms function, true by default
final
autoDispose bool
if autoDispose is true, the form will be automatically disposed when a containing widget is disposed. True by default. If you change it to false, the form will be stored during the whole app lifecycle or unless you call clearLiteForm method
final
autoRemoveUnregisteredFields bool
autoRemoveUnregisteredFields If some condition removes a form field from your form
final
child Widget
The widget below this widget in the tree.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
name String
Form name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
no setter
translationBuilder TranslationBuilder
All of the forms' errors, hints and labels call this function before displaying. The value passed as a parameter. If you need to translate the value of even change it completely return your value.
final

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
updateShouldNotify(covariant LiteForm oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) LiteForm?