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

Properties

border → InputBorder?
final
constraints → BoxConstraints?
Bounds the field along with its error and counter lines.
final
contentPadding → EdgeInsetsGeometry?
final
counter → Widget?
final
counterStyle → TextStyle?
final
counterText → String?
final
disabledBorder → InputBorder?
final
enabled → bool
final
enabledBorder → InputBorder?
final
error → Widget?
final
errorBorder → InputBorder?
final
errorMaxLines → int?
final
errorStyle → TextStyle?
final
errorText → String?
final
fillColor → Color?
final
filled → bool?
final
focusedBorder → InputBorder?
final
focusedErrorBorder → InputBorder?
final
hashCode → int
The hash code for this object.
no setterinherited
helperText → String?
final
hint → Widget?
final
hintMaxLines → int?
final
hintStyle → TextStyle?
final
hintText → String?
final
hoverColor → Color?
final
isCollapsed → bool?
final
isDense → bool?
final
prefix → Widget?
final
prefixIcon → Widget?
final
prefixIconConstraints → BoxConstraints?
final
prefixStyle → TextStyle?
final
prefixText → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suffix → Widget?
final
suffixIcon → Widget?
final
suffixIconConstraints → BoxConstraints?
final
suffixStyle → TextStyle?
final
suffixText → String?
final

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited