errorBorder property

BoxBorder? get errorBorder

Null when errorBorderColor isn't set; the input then uses the theme's error color.

Implementation

BoxBorder? get errorBorder => errorBorderColor == null
    ? null
    : switch (border) {
        UnderlineInputBorder() => Border(
          bottom: BorderSide(
            color: errorBorderColor!,
            width: border!.borderSide.width,
          ),
        ),
        OutlineInputBorder() => Border.fromBorderSide(
          border!.borderSide.copyWith(color: errorBorderColor!),
        ),
        _ => null,
      };