buildBoxShadow method

List<BoxShadow>? buildBoxShadow(
  1. TInputContext ctx,
  2. Color color
)

Implementation

List<BoxShadow>? buildBoxShadow(TInputContext ctx, Color color) {
  if (boxShadowBuilder != null) {
    return boxShadowBuilder!(ctx, color);
  }

  return ctx.isFocused ? [BoxShadow(color: color.withAlpha(100), blurRadius: 4.0, offset: const Offset(0, 2))] : null;
}