PathData constructor
const
PathData({
- @PathSourceConverter.new() required PathSource source,
- @Default.new(FillRule.nonZero) FillRule fillRule,
- @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;