InputDecoration class Null safety

Annotations
  • @freezed

Constructors

InputDecoration({Widget? icon, Color? iconColor, Widget? label, String? labelText, TextStyle? labelStyle, TextStyle? floatingLabelStyle, String? helperText, TextStyle? helperStyle, int? helperMaxLines, String? hintText, TextStyle? hintStyle, TextDirection? hintTextDirection, int? hintMaxLines, String? errorText, TextStyle? errorStyle, int? errorMaxLines, FloatingLabelBehavior? floatingLabelBehavior, FloatingLabelAlignment? floatingLabelAlignment, @Default(false) bool isCollapsed, bool? isDense, EdgeInsets? contentPadding, Widget? prefixIcon, BoxConstraints? prefixIconConstraints, Widget? prefix, String? prefixText, TextStyle? prefixStyle, Color? prefixIconColor, Widget? suffixIcon, Widget? suffix, String? suffixText, TextStyle? suffixStyle, Color? suffixIconColor, BoxConstraints? suffixIconConstraints, Widget? counter, String? counterText, TextStyle? counterStyle, bool? filled, Color? fillColor, Color? focusColor, Color? hoverColor, ShapeBorder? errorBorder, ShapeBorder? focusedBorder, ShapeBorder? focusedErrorBorder, ShapeBorder? disabledBorder, ShapeBorder? enabledBorder, ShapeBorder? border, @Default(true) bool enabled, String? semanticCounterText, bool? alignLabelWithHint, BoxConstraints? constraints})
const
factory
InputDecoration.fromJson(Map<String, Object?> json)
factory

Properties

alignLabelWithHint → bool?
read-only, inherited
border → ShapeBorder?
read-only, inherited
constraints → BoxConstraints?
read-only, inherited
contentPadding → EdgeInsets?
read-only, inherited
copyWith → $InputDecorationCopyWith<InputDecoration>
@JsonKey(ignore: true), read-only, inherited
counter → Widget?
read-only, inherited
counterStyle → TextStyle?
read-only, inherited
counterText → String?
read-only, inherited
disabledBorder → ShapeBorder?
read-only, inherited
enabled → bool
read-only, inherited
enabledBorder → ShapeBorder?
read-only, inherited
errorBorder → ShapeBorder?
read-only, inherited
errorMaxLines → int?
read-only, inherited
errorStyle → TextStyle?
read-only, inherited
errorText → String?
read-only, inherited
fillColor → Color?
read-only, inherited
filled → bool?
read-only, inherited
floatingLabelAlignment → FloatingLabelAlignment?
read-only, inherited
floatingLabelBehavior → FloatingLabelBehavior?
read-only, inherited
floatingLabelStyle → TextStyle?
read-only, inherited
focusColor → Color?
read-only, inherited
focusedBorder → ShapeBorder?
read-only, inherited
focusedErrorBorder → ShapeBorder?
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
helperMaxLines → int?
read-only, inherited
helperStyle → TextStyle?
read-only, inherited
helperText → String?
read-only, inherited
hintMaxLines → int?
read-only, inherited
hintStyle → TextStyle?
read-only, inherited
hintText → String?
read-only, inherited
hintTextDirection → TextDirection?
read-only, inherited
hoverColor → Color?
read-only, inherited
icon → Widget?
read-only, inherited
iconColor → Color?
read-only, inherited
isCollapsed → bool
read-only, inherited
isDense → bool?
read-only, inherited
label → Widget?
read-only, inherited
labelStyle → TextStyle?
read-only, inherited
labelText → String?
read-only, inherited
prefix → Widget?
read-only, inherited
prefixIcon → Widget?
read-only, inherited
prefixIconColor → Color?
read-only, inherited
prefixIconConstraints → BoxConstraints?
read-only, inherited
prefixStyle → TextStyle?
read-only, inherited
prefixText → String?
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
semanticCounterText → String?
read-only, inherited
suffix → Widget?
read-only, inherited
suffixIcon → Widget?
read-only, inherited
suffixIconColor → Color?
read-only, inherited
suffixIconConstraints → BoxConstraints?
read-only, inherited
suffixStyle → TextStyle?
read-only, inherited
suffixText → String?
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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