UnderlineInputBorder constructor Null safety

const UnderlineInputBorder(
  1. {BorderSide borderSide = const BorderSide(),
  2. 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. The borderRadius parameter must not be null.

Implementation

const UnderlineInputBorder({
  super.borderSide = const BorderSide(),
  this.borderRadius = const BorderRadius.only(
    topLeft: Radius.circular(4.0),
    topRight: Radius.circular(4.0),
  ),
}) : assert(borderRadius != null);