ShapeBorderClipper constructor Null safety

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

Creates a ShapeBorder clipper.

The shape argument must not be null.

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.


const ShapeBorderClipper({
  required this.shape,
}) : assert(shape != null);