FormItem<V> class
- Implementers
Constructors
-
FormItem.new({required String hint, String header = '', FormType type = FormType.text, bool required = true, bool editable = true, bool visible = true, bool inRow = false, bool breakRow = false, bool breakCol = false, int? maxSelect = -1, int? maxItems = -1, double? widgetWidth, List<
V> ? options, ValueStream<List< ? optionsStream, ArrayMapping? arrayMapping, ObjectMapping? objectMapping, required bool validation(dynamic value), required V? value, String kind = '', String? label, List<V> >EditorType> editorTypes = const [EditorType.text], Iterable<String> ? autofillHints = const <String>[], Widget customBuilder(BuildContext, V? value, dynamic onValueChange(V?))?, Widget customArrayBuilder(V item, int index, dynamic onValueChanged(Map<String, dynamic> ), dynamic onRemoveItem())?, Map<String, dynamic> factory()?, bool hasSelect = true, bool hasDelete = true, bool hasColor = false, bool hasImage = false, bool hasAction = false, Stream<bool> ? visibilityStream, dynamic onChange(V?)?, Widget suffix(void (String))?, dynamic onTap()?, WidgetSize? size, String titleCancel = 'Cancel', String titleConfirm = 'Ok', Widget previewBuilder(String)?, double? maxValue, double? minValue, bool showFacility = true, List<TextInputFormatter> ? inputFormatters, dynamic transform(V?)?, String? errorMessage, Widget? labelWidget, IconData? prefix, Widget imagePathWidget(String)?})
Properties
- arrayMapping → ArrayMapping?
-
final
-
autofillHints
→ Iterable<
String> ? -
final
- breakCol → bool
-
final
- breakRow → bool
-
final
-
customArrayBuilder
→ Widget Function(V item, int index, dynamic onValueChanged(Map<
String, dynamic> ), dynamic onRemoveItem())? -
final
- customBuilder → Widget Function(BuildContext, V? value, dynamic onValueChange(V?))?
-
final
- editable → bool
-
final
-
editorTypes
→ List<
EditorType> -
final
- errorMessage → String?
-
final
-
factory
→ Map<
String, dynamic> Function()? -
final
- hasAction → bool
-
final
- hasColor → bool
-
final
- hasDelete → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasImage → bool
-
final
- hasSelect → bool
-
final
- header → String
-
final
- hint → String
-
final
- imagePathWidget → Widget Function(String)?
-
final
-
inputFormatters
↔ List<
TextInputFormatter> ? -
getter/setter pair
- inRow → bool
-
final
- kind → String
-
final
- label → String?
-
final
- labelWidget → Widget?
-
final
- maxItems → int?
-
final
- maxSelect → int?
-
final
- maxValue → double?
-
final
- minValue → double?
-
final
- objectMapping → ObjectMapping?
-
final
- onChange → dynamic Function(V?)?
-
final
- onTap → dynamic Function()?
-
final
-
options
→ List<
V> ? -
final
-
optionsStream
→ ValueStream<
List< ?V> > -
final
- prefix → IconData?
-
final
- previewBuilder → Widget Function(String)?
-
final
- required → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFacility → bool
-
final
- size → WidgetSize?
-
final
- suffix → Widget Function(void (String))?
-
final
- titleCancel → String
-
final
- titleConfirm → String
-
final
- transform → dynamic Function(V?)?
-
final
- type → FormType
-
final
- validation → bool Function(dynamic value)
-
final
- value ↔ V?
-
getter/setter pair
-
visibilityStream
→ Stream<
bool> ? -
final
- visible → bool
-
final
- widgetWidth → double?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited