focusBorder property
BoxBorder?
get
focusBorder
Null when focusBorderColor isn't set; the input then uses the theme's primary color.
Implementation
BoxBorder? get focusBorder => focusBorderColor == null
? null
: switch (border) {
UnderlineInputBorder() => Border(
bottom: BorderSide(
color: focusBorderColor!,
width: border!.borderSide.width,
),
),
OutlineInputBorder() => Border.fromBorderSide(
border!.borderSide.copyWith(color: focusBorderColor!),
),
_ => null,
};