buildBorder method

Border buildBorder(
  1. TInputContext ctx,
  2. Color color
)

Implementation

Border buildBorder(TInputContext ctx, Color color) {
  if (borderBuilder != null) {
    return borderBuilder!(ctx, color);
  }

  return Border.all(color: color, width: ctx.isFocused ? 2.0 : 1.0);
}