FormFile constructor

FormFile({
  1. Key key,
  2. YekongaForm formControl,
  3. String value,
  4. @required String name,
  5. bool isMultiple = false,
  6. FocusNode focusNode,
  7. InputDecoration decoration = const InputDecoration(),
  8. TextInputType keyboardType = TextInputType.text,
  9. TextInputAction textInputAction,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. TextStyle style,
  12. StrutStyle strutStyle,
  13. TextAlign textAlign = TextAlign.start,
  14. TextAlignVertical textAlignVertical,
  15. TextDirection textDirection,
  16. bool isRequired = false,
  17. bool readOnly = false,
  18. ToolbarOptions toolbarOptions,
  19. bool showCursor,
  20. bool autofocus = false,
  21. String obscuringCharacter = '•',
  22. bool obscureText = false,
  23. bool autocorrect = true,
  24. SmartDashesType smartDashesType = SmartDashesType.enabled,
  25. SmartQuotesType smartQuotesType = SmartQuotesType.enabled,
  26. bool enableSuggestions = true,
  27. int maxLines = 1,
  28. int minLines,
  29. bool expands = false,
  30. int maxLength,
  31. bool maxLengthEnforced = true,
  32. MaxLengthEnforcement maxLengthEnforcement,
  33. ValueChanged<Map<String, dynamic>> onChanged,
  34. VoidCallback onEditingComplete,
  35. ValueChanged<String> onSubmitted,
  36. AppPrivateCommandCallback onAppPrivateCommand,
  37. List<TextInputFormatter> inputFormatters,
  38. bool enabled = false,
  39. double cursorWidth = 2.0,
  40. double cursorHeight,
  41. Radius cursorRadius,
  42. Color cursorColor,
  43. Brightness keyboardAppearance,
  44. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  45. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  46. bool enableInteractiveSelection = true,
  47. TextSelectionControls selectionControls,
  48. GestureTapCallback onTap,
  49. MouseCursor mouseCursor,
  50. InputCounterWidgetBuilder buildCounter,
  51. ScrollController scrollController,
  52. ScrollPhysics scrollPhysics,
  53. Iterable<String> autofillHints,
  54. String restorationId,
})

Implementation

FormFile({
  Key key,
  this.formControl,
  this.value,
  @required this.name,
  this.isMultiple = false,
  this.focusNode,
  this.decoration = const InputDecoration(),
  this.keyboardType = TextInputType.text,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.isRequired = false,
  this.readOnly = false,
  this.toolbarOptions,
  this.showCursor,
  this.autofocus = false,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType = SmartDashesType.enabled,
  this.smartQuotesType = SmartQuotesType.enabled,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforced = true,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled = false,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.restorationId,
}) : super(key: key);