ShapeBorderClipper constructor

const ShapeBorderClipper({
  1. required ShapeBorder shape,
  2. TextDirection? textDirection,
})

Creates a ShapeBorder clipper.

The textDirection argument must be provided non-null if shape has a text direction dependency (for example if it is expressed in terms of "start" and "end" instead of "left" and "right"). It may be null if the border will not need the text direction to paint itself.

Implementation

const ShapeBorderClipper({
  required this.shape,
  this.textDirection,
});