InputDecoration.collapsed constructor

const InputDecoration.collapsed({@required String hintText, bool hasFloatingPlaceholder: true TextStyle hintStyle, bool filled: false Color fillColor, Color focusColor, Color hoverColor, InputBorder border: InputBorder.none, bool enabled: true })

Defines an InputDecorator that is the same size as the input field.

This type of input decoration does not include a border by default.

Sets the isCollapsed property to true.

Implementation

const InputDecoration.collapsed({
  @required this.hintText,
  this.hasFloatingPlaceholder = true,
  this.hintStyle,
  this.filled = false,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.border = InputBorder.none,
  this.enabled = true,
}) : assert(enabled != null),
     icon = null,
     labelText = null,
     labelStyle = null,
     helperText = null,
     helperStyle = null,
     helperMaxLines = null,
     hintMaxLines = null,
     errorText = null,
     errorStyle = null,
     errorMaxLines = null,
     isDense = false,
     contentPadding = EdgeInsets.zero,
     isCollapsed = true,
     prefixIcon = null,
     prefix = null,
     prefixText = null,
     prefixStyle = null,
     suffix = null,
     suffixIcon = null,
     suffixText = null,
     suffixStyle = null,
     counter = null,
     counterText = null,
     counterStyle = null,
     errorBorder = null,
     focusedBorder = null,
     focusedErrorBorder = null,
     disabledBorder = null,
     enabledBorder = null,
     semanticCounterText = null,
     alignLabelWithHint = false;