InputDecorationV3.collapsed constructor

const InputDecorationV3.collapsed(
  1. FloatingLabelAlignment? floatingLabelAlignment, {
  2. required String? hintText,
  3. FloatingLabelBehavior? floatingLabelBehavior,
  4. TextStyle? hintStyle,
  5. TextDirection? hintTextDirection,
  6. bool? filled = false,
  7. Color? fillColor,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. InputBorder? border = InputBorder.none,
  11. 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 InputDecorationV3.collapsed(
  this.floatingLabelAlignment, {
  required this.hintText,
  this.floatingLabelBehavior,
  this.hintStyle,
  this.hintTextDirection,
  this.filled = false,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.border = InputBorder.none,
  this.enabled = true,
})  : icon = null,
      label = null,
      labelText = null,
      labelStyle = null,
      floatingLabelStyle = 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,
      prefixIconConstraints = null,
      suffix = null,
      suffixIcon = null,
      suffixText = null,
      suffixStyle = null,
      suffixIconConstraints = null,
      counter = null,
      counterText = null,
      counterStyle = null,
      errorBorder = null,
      focusedBorder = null,
      focusedErrorBorder = null,
      disabledBorder = null,
      enabledBorder = null,
      semanticCounterText = null,
      alignLabelWithHint = false,
      constraints = null;