createPaintForBorder method

Paint? createPaintForBorder(
  1. BorderSide? side
)

Implementation

Paint? createPaintForBorder(BorderSide? side) {
  if (side == null)
    return null;

  return new Paint()
    ..style = PaintingStyle.stroke
    ..color = side.color
    ..strokeWidth = side.width;
}