underlineBorder static method
Underline-only border (Material-style).
Implementation
static InputBorder underlineBorder(
BuildContext context, {
Color? color,
double width = 1,
}) {
return UnderlineInputBorder(
borderSide: BorderSide(
color: color ?? Theme.of(context).colorScheme.outlineVariant,
width: width,
),
);
}