CameraCutoutPathCommand constructor
CameraCutoutPathCommand({
- required CameraCutoutPathOperation operation,
- 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.',
);
}
}