Path constructor

Path({
  1. List<PathCommand> commands = const <PathCommand>[],
  2. PathFillType fillType = PathFillType.nonZero,
})

Creates a new immutable collection of PathCommands.

Implementation

Path({
  List<PathCommand> commands = const <PathCommand>[],
  this.fillType = PathFillType.nonZero,
}) {
  _commands.addAll(commands);
}