InputDecorator constructor

const InputDecorator({Key key, InputDecoration decoration, TextStyle baseStyle, TextAlign textAlign, bool isFocused: false, bool isEmpty: false, Widget child })

Creates a widget that displays a border, labels, and icons, for a TextField.

The isFocused and isEmpty arguments must not be null.

Implementation

const InputDecorator({
  Key key,
  this.decoration,
  this.baseStyle,
  this.textAlign,
  this.isFocused = false,
  this.isEmpty = false,
  this.child,
}) : assert(isFocused != null),
     assert(isEmpty != null),
     super(key: key);