JsonTextFormFieldBuilder class

Builder that can build an TextFormField widget. See the fromDynamic for the format.

Inheritance

Constructors

JsonTextFormFieldBuilder({required bool autocorrect, Iterable<String>? autofillHints, required bool autofocus, AutovalidateMode? autovalidateMode, InputCounterWidgetBuilder? buildCounter, TextEditingController? controller, Color? cursorColor, double? cursorHeight, Radius? cursorRadius, required double cursorWidth, dynamic decoration, required bool enableIMEPersonalizedLearning, required bool enableInteractiveSelection, required bool enableSuggestions, bool? enabled, required bool expands, FocusNode? focusNode, String? initialValue, List<TextInputFormatter>? inputFormatters, Brightness? keyboardAppearance, TextInputType? keyboardType, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, int? maxLines, int? minLines, bool? obscureText, required String obscuringCharacter, ValueChanged<String>? onChanged, VoidCallback? onEditingComplete, ValueChanged<String>? onFieldSubmitted, FormFieldSetter<String>? onSaved, VoidCallback? onTap, bool? readOnly, String? restorationId, EdgeInsetsGeometry? scrollPadding, ScrollPhysics? scrollPhysics, TextSelectionControls? selectionControls, bool? showCursor, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, StrutStyle? strutStyle, TextStyle? style, TextAlign? textAlign, TextAlignVertical? textAlignVertical, TextCapitalization? textCapitalization, TextDirection? textDirection, TextInputAction? textInputAction, ToolbarOptions? toolbarOptions, Validator? validator})

Properties

autocorrect → bool
final
autofillHints → Iterable<String>?
final
autofocus → bool
final
autovalidateMode → AutovalidateMode?
final
buildCounter → InputCounterWidgetBuilder?
final
controller → TextEditingController?
final
cursorColor → Color?
final
cursorHeight → double?
final
cursorRadius → Radius?
final
cursorWidth → double
final
decoration → dynamic
final
enabled → bool?
final
enableIMEPersonalizedLearning → bool
final
enableInteractiveSelection → bool
final
enableSuggestions → bool
final
expands → bool
final
focusNode → FocusNode?
final
hashCode → int
The hash code for this object.
no setterinherited
initialValue → String?
final
inputFormatters → List<TextInputFormatter>?
final
keyboardAppearance → Brightness?
final
keyboardType → TextInputType?
final
maxLength → int?
final
maxLengthEnforcement → MaxLengthEnforcement?
final
maxLines → int?
final
minLines → int?
final
numSupportedChildren → int
finalinherited
obscureText → bool?
final
obscuringCharacter → String
final
onChanged → ValueChanged<String>?
final
onEditingComplete → VoidCallback?
final
onFieldSubmitted → ValueChanged<String>?
final
onSaved → FormFieldSetter<String>?
final
onTap → VoidCallback?
final
preferredSizeWidget → bool
finalinherited
readOnly → bool?
final
restorationId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollPadding → EdgeInsetsGeometry?
final
scrollPhysics → ScrollPhysics?
final
selectionControls → TextSelectionControls?
final
showCursor → bool?
final
smartDashesType → SmartDashesType?
final
smartQuotesType → SmartQuotesType?
final
strutStyle → StrutStyle?
final
style → TextStyle?
final
textAlign → TextAlign?
final
textAlignVertical → TextAlignVertical?
final
textCapitalization → TextCapitalization?
final
textDirection → TextDirection?
final
textInputAction → TextInputAction?
final
toolbarOptions → ToolbarOptions?
final
validator → Validator?
final

Methods

build({required ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data}) → Widget
Builds the widget. If there are dynamic keys on the data object, and the widget is not a PreferredSizeWidget, then the returned widget will be wrapped by a stateful widget that will rebuild if any of the dynamic args change in value.
inherited
buildCustom({ChildWidgetBuilder? childBuilder, required BuildContext context, required JsonWidgetData data, Key? key}) → Widget
Builds the widget to render to the tree. If the data object has a non-empty id associated with it and the enabled property is true then this will attach the input value to the JsonWidgetRegistry using the id as the key any time the selected value is changed.
override
getChild(JsonWidgetData? data, {int index = 0}) → JsonWidgetData
Returns a non-null child for widgets that must always have child widgets. This allows the widget to be built and rendered even if the child is missing.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(JsonWidgetData data) → void
Removes any / all values this builder may have set from the JsonWidgetRegistry.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDynamic(dynamic map, {JsonWidgetRegistry? registry}) → JsonTextFormFieldBuilder?
Builds the builder from a Map-like dynamic structure. This expects the JSON format to be of the following structure:

Constants

kNumSupportedChildren → const int
type → const String