CustomShape constructor

CustomShape({
  1. ShapeBuilder? builder,
})

Creates a shape drawn by builder, which gets the bounding rect and returns the Path to draw.

Throws an AssertionError if builder is null.

Implementation

CustomShape({this.builder})
  : assert(
      builder != null,
      'CustomShape needs a builder that returns the Path to draw.',
    );