CardSettingsText constructor

CardSettingsText({
  1. Key? key,
  2. String? initialValue,
  3. bool autovalidate = false,
  4. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  5. bool enabled = true,
  6. FormFieldSetter<String>? onSaved,
  7. FormFieldValidator<String>? validator,
  8. ValueChanged<String>? onChanged,
  9. TextEditingController? controller,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. TextInputType keyboardType = TextInputType.text,
  12. MaxLengthEnforcement? maxLengthEnforcement = MaxLengthEnforcement.enforced,
  13. String? inputMask,
  14. List<TextInputFormatter>? inputFormatters,
  15. ValueChanged<String>? onFieldSubmitted,
  16. TextStyle? style,
  17. FocusNode? focusNode,
  18. TextInputAction? inputAction,
  19. FocusNode? inputActionNode,
  20. String label = 'Label',
  21. bool contentOnNewLine = false,
  22. int maxLength = 20,
  23. int numberOfLines = 1,
  24. bool showCounter = false,
  25. bool visible = true,
  26. bool autocorrect = true,
  27. bool obscureText = false,
  28. bool autofocus = false,
  29. TextAlign? contentAlign,
  30. String? hintText,
  31. Icon? icon,
  32. TextAlign? labelAlign,
  33. double? labelWidth,
  34. String? prefixText,
  35. Widget? requiredIndicator,
  36. String? unitLabel,
  37. bool? showMaterialonIOS,
  38. OverlayVisibilityMode showClearButtonIOS = OverlayVisibilityMode.never,
  39. EdgeInsetsGeometry? fieldPadding,
  40. EdgeInsetsGeometry contentPadding = const EdgeInsets.all(0.0),
})

Implementation

CardSettingsText({
  Key? key,
  String? initialValue,
  bool autovalidate: false,
  AutovalidateMode autovalidateMode: AutovalidateMode.onUserInteraction,
  this.enabled = true,
  this.onSaved,
  this.validator,
  this.onChanged,
  this.controller,
  this.textCapitalization = TextCapitalization.none,
  this.keyboardType = TextInputType.text,
  this.maxLengthEnforcement: MaxLengthEnforcement.enforced,
  this.inputMask,
  this.inputFormatters,
  this.onFieldSubmitted,
  this.style,
  this.focusNode,
  this.inputAction,
  this.inputActionNode,
  this.label = 'Label',
  this.contentOnNewLine = false,
  this.maxLength = 20,
  this.numberOfLines = 1,
  this.showCounter = false,
  this.visible = true,
  this.autocorrect = true,
  this.obscureText = false,
  this.autofocus = false,
  this.contentAlign,
  this.hintText,
  this.icon,
  this.labelAlign,
  this.labelWidth,
  this.prefixText,
  this.requiredIndicator,
  this.unitLabel,
  this.showMaterialonIOS,
  this.showClearButtonIOS = OverlayVisibilityMode.never,
  this.fieldPadding,
  this.contentPadding = const EdgeInsets.all(0.0),
})  : assert(maxLength > 0),
      assert(controller == null || inputMask == null),
      super(
        key: key,
        initialValue: initialValue,
        onSaved: onSaved,
        validator: validator,
        autovalidateMode: autovalidateMode,
        builder: (FormFieldState<String> field) =>
            (field as _CardSettingsTextState)._build(field.context),
      );