BorderTextField constructor

BorderTextField({
  1. @required BuildContext? context,
  2. @required Key? key,
  3. @required TextEditingController? controller,
  4. bool enabled = true,
  5. TextInputType inputType = TextInputType.text,
  6. bool obscureText = false,
  7. String obscureCharacter = '•',
  8. int? maxLength = 50,
  9. int maxLines = 1,
  10. TextStyle? style,
  11. TextStyle? labelStyle,
  12. TextInputAction textInputAction = TextInputAction.done,
  13. bool autoValidateMode = false,
  14. String? labelText,
  15. String? hintText,
  16. Widget? prefixIcon,
  17. required dynamic validator(
    1. String? text
    ),
  18. bool isDense = false,
  19. TextCapitalization textCapitalization = TextCapitalization.none,
  20. bool showSuffixIcon = false,
  21. dynamic showText(
    1. bool show
    )?,
  22. FocusNode? focusNode,
  23. dynamic onEditingComplete()?,
  24. dynamic onTextChanged(
    1. String? text
    )?,
  25. dynamic filled = true,
})

Implementation

BorderTextField(
    {@required BuildContext? context,
      @required this.key,
      @required this.controller,
      this.enabled = true,
      this.inputType = TextInputType.text,
      this.obscureText = false,
      this.obscureCharacter = '•',
      this.maxLength = 50,
      this.maxLines = 1,
      TextStyle? style,
      TextStyle? labelStyle,
      this.textInputAction = TextInputAction.done,
      this.autoValidateMode = false,
      this.labelText,
      this.hintText,
      this.prefixIcon,
      required this.validator,
      this.isDense = false,
      this.textCapitalization = TextCapitalization.none,
      this.showSuffixIcon = false,
      this.showText,
      this.focusNode,
      this.onEditingComplete,
      this.onTextChanged,
      this.filled = true}) {
  this.style = style ??= Theme.of(context!).textTheme.bodyText2;
  this.labelStyle = labelStyle ??= Theme.of(context!).textTheme.bodyText2;
}