SunnyTextField<T extends Object> constructor

SunnyTextField<T extends Object>({
  1. Key? key,
  2. required JsonPath attribute,
  3. PlatformBuilder<MaterialTextFieldData> material = _emptyMaterial,
  4. PlatformBuilder<CupertinoTextFieldData> cupertino = _emptyCupertino,
  5. bool obscureText = false,
  6. dynamic label,
  7. TextInputType? keyboardType,
  8. int? minLength,
  9. List<ValidatorFn<T?>> validators = const [],
  10. bool? isRequired,
  11. bool autovalidate = false,
  12. T? initialValue,
  13. FormValueChanged<T?>? onChange,
  14. FocusNode? focusNode,
  15. ValueChanged<T?>? onSubmitted,
  16. bool? autocorrect,
  17. TextInputAction? textInputAction,
  18. TextCapitalization? textCapitalization,
  19. dynamic placeholder,
  20. FieldConverter<T>? converter,
  21. TextEditingController? controller,
  22. bool autofocus = false,
  23. TextStyle? placeholderStyle,
  24. bool expands = false,
  25. int? minLines,
  26. int? maxLines,
  27. bool enabled = true,
})

Implementation

SunnyTextField(
    {Key? key,
    required this.attribute,
    this.material = _emptyMaterial,
    this.cupertino = _emptyCupertino,
    this.obscureText = false,
    this.label,
    this.keyboardType,
    this.minLength,
    this.validators = const [],
    this.isRequired,
    this.autovalidate = false,
    this.initialValue,
    this.onChange,
    this.focusNode,
    this.onSubmitted,
    this.autocorrect,
    this.textInputAction,
    this.textCapitalization,
    this.placeholder,
    this.converter,
    this.controller,
    this.autofocus = false,
    this.placeholderStyle,
    this.expands = false,
    this.minLines,
    this.maxLines,
    this.enabled = true})
    : super(key: key ?? Key("$attribute-input"));