InputDecoration class
Constructors
-
InputDecoration({Widget? hint, String? hintText, TextStyle? hintStyle, int? hintMaxLines, String? helperText, Widget? error, String? errorText, TextStyle? errorStyle, int? errorMaxLines, Widget? counter, String? counterText, TextStyle? counterStyle, Widget? prefix, String? prefixText, TextStyle? prefixStyle, Widget? suffix, String? suffixText, TextStyle? suffixStyle, Widget? prefixIcon, Widget? suffixIcon, BoxConstraints? prefixIconConstraints, BoxConstraints? suffixIconConstraints, BoxConstraints? constraints, EdgeInsetsGeometry? contentPadding, bool? isDense, bool? isCollapsed, bool? filled, Color? fillColor, Color? hoverColor, InputBorder? border, InputBorder? enabledBorder, InputBorder? disabledBorder, InputBorder? focusedBorder, InputBorder? errorBorder, InputBorder? focusedErrorBorder, bool enabled = true})
-
const
-
InputDecoration.collapsed({required String? hintText, Widget? hint, TextStyle? hintStyle, int? hintMaxLines, bool? filled, Color? fillColor, Color? hoverColor, InputBorder? border = const NoInputBorder(), bool enabled = true})
-
const
Methods
-
applyDefaults(InputDecorationThemeData theme)
→ InputDecoration
-
-
copyWith({Widget? hint, String? hintText, TextStyle? hintStyle, int? hintMaxLines, String? helperText, Widget? error, String? errorText, TextStyle? errorStyle, int? errorMaxLines, Widget? counter, String? counterText, TextStyle? counterStyle, Widget? prefix, String? prefixText, TextStyle? prefixStyle, Widget? suffix, String? suffixText, TextStyle? suffixStyle, Widget? prefixIcon, Widget? suffixIcon, BoxConstraints? prefixIconConstraints, BoxConstraints? suffixIconConstraints, BoxConstraints? constraints, EdgeInsetsGeometry? contentPadding, bool? isDense, bool? isCollapsed, bool? filled, Color? fillColor, Color? hoverColor, InputBorder? border, InputBorder? enabledBorder, InputBorder? disabledBorder, InputBorder? focusedBorder, InputBorder? errorBorder, InputBorder? focusedErrorBorder, bool? enabled})
→ InputDecoration
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited