InputDecorator constructor Null safety
- {Key? key,
- required InputDecoration decoration,
- TextStyle? baseStyle,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- bool isFocused = false,
- bool isHovering = false,
- bool expands = false,
- bool isEmpty = false,
- Widget? child}
Creates a widget that displays a border, labels, and icons, for a TextField.
The isFocused, isHovering, expands, and isEmpty arguments must not be null.
Implementation
const InputDecorator({
super.key,
required this.decoration,
this.baseStyle,
this.textAlign,
this.textAlignVertical,
this.isFocused = false,
this.isHovering = false,
this.expands = false,
this.isEmpty = false,
this.child,
}) : assert(decoration != null),
assert(isFocused != null),
assert(isHovering != null),
assert(expands != null),
assert(isEmpty != null);