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, InputBorder errorBorder, InputBorder focusedBorder, InputBorder focusedErrorBorder, InputBorder disabledBorder, InputBorder enabledBorder, InputBorder border })

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

The values of isDense, isCollapsed, isFilled, 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.errorBorder,
  this.focusedBorder,
  this.focusedErrorBorder,
  this.disabledBorder,
  this.enabledBorder,
  this.border,
}) : assert(isDense != null),
     assert(isCollapsed != null),
    assert(filled != null);