UnderlineInputBorder constructor
- BorderSide borderSide = const BorderSide(),
- BorderRadius borderRadius = const BorderRadius.only(topLeft: Radius.circular(4.0), topRight: Radius.circular(4.0)),
Creates an underline border for an InputDecorator.
The borderSide parameter defaults to BorderSide.none (it must not be null). Applications typically do not specify a borderSide parameter because the input decorator substitutes its own, using copyWith, based on the current theme and InputDecorator.isFocused.
The borderRadius parameter defaults to a value where the top left and right corners have a circular radius of 4.0.
Implementation
const UnderlineInputBorder({
super.borderSide = const BorderSide(),
this.borderRadius = const BorderRadius.only(
topLeft: Radius.circular(4.0),
topRight: Radius.circular(4.0),
),
});