InputDecorationTheme constructor

const InputDecorationTheme({TextStyle labelStyle, TextStyle helperStyle, TextStyle hintStyle, TextStyle errorStyle, int errorMaxLines, bool hasFloatingPlaceholder: true, bool isDense: false, EdgeInsetsGeometry contentPadding, bool isCollapsed: false, TextStyle prefixStyle, TextStyle suffixStyle, TextStyle counterStyle, bool filled: false, Color fillColor, Color focusColor, Color hoverColor, InputBorder errorBorder, InputBorder focusedBorder, InputBorder focusedErrorBorder, InputBorder disabledBorder, InputBorder enabledBorder, InputBorder border, bool alignLabelWithHint: false })

Creates a value for ThemeData.inputDecorationTheme that defines default values for InputDecorator.

The values of isDense, isCollapsed, filled, and border must not be null.

Implementation

const InputDecorationTheme({
  this.labelStyle,
  this.helperStyle,
  this.hintStyle,
  this.errorStyle,
  this.errorMaxLines,
  this.hasFloatingPlaceholder = true,
  this.isDense = false,
  this.contentPadding,
  this.isCollapsed = false,
  this.prefixStyle,
  this.suffixStyle,
  this.counterStyle,
  this.filled = false,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.errorBorder,
  this.focusedBorder,
  this.focusedErrorBorder,
  this.disabledBorder,
  this.enabledBorder,
  this.border,
  this.alignLabelWithHint = false,
}) : assert(isDense != null),
     assert(isCollapsed != null),
     assert(filled != null),
     assert(alignLabelWithHint != null);