CameraCutoutPathCommand constructor

CameraCutoutPathCommand({
  1. required CameraCutoutPathOperation operation,
  2. Iterable<Offset> points = const <Offset>[],
})

Implementation

CameraCutoutPathCommand({
  required this.operation,
  Iterable<Offset> points = const <Offset>[],
}) : points = List<Offset>.unmodifiable(points) {
  if (this.points.length != operation.pointCount) {
    throw ArgumentError.value(
      this.points,
      'points',
      '${operation.name} requires ${operation.pointCount} points.',
    );
  }
}