PathData constructor

const PathData({
  1. @PathSourceConverter.new() required PathSource source,
  2. @Default.new(FillRule.nonZero) FillRule fillRule,
  3. @Default.new(CanvasAppearance(foreground: CanvasFill.none())) CanvasAppearance appearance,
})

Implementation

const factory PathData({
  /// The sole authored geometry source. Use an explicit empty source for an
  /// intentionally empty path.
  @PathSourceConverter() required PathSource source,
  @Default(FillRule.nonZero) FillRule fillRule,
  @Default(CanvasAppearance(foreground: CanvasFill.none()))
  CanvasAppearance appearance,
}) = _PathData;