CanvasPath constructor
CanvasPath({
- void arc(])?,
- void arcTo()?,
- void bezierCurveTo()?,
- void closePath()?,
- void ellipse(])?,
- void lineTo()?,
- void moveTo()?,
- void quadraticCurveTo()?,
- void rect()?,
- void roundRect(])?,
Implementation
factory CanvasPath({
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num, [
_i2.bool?,
])? arc,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? arcTo,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? bezierCurveTo,
void Function()? closePath,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num, [
_i2.bool?,
])? ellipse,
void Function(
_i2.num,
_i2.num,
)? lineTo,
void Function(
_i2.num,
_i2.num,
)? moveTo,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? quadraticCurveTo,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? rect,
void Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num, [
_i2.Object?,
])? roundRect,
}) =>
CanvasPath._(
arc: arc == null ? null : _i4.allowInterop(arc),
arcTo: arcTo == null ? null : _i4.allowInterop(arcTo),
bezierCurveTo:
bezierCurveTo == null ? null : _i4.allowInterop(bezierCurveTo),
closePath: closePath == null ? null : _i4.allowInterop(closePath),
ellipse: ellipse == null ? null : _i4.allowInterop(ellipse),
lineTo: lineTo == null ? null : _i4.allowInterop(lineTo),
moveTo: moveTo == null ? null : _i4.allowInterop(moveTo),
quadraticCurveTo: quadraticCurveTo == null
? null
: _i4.allowInterop(quadraticCurveTo),
rect: rect == null ? null : _i4.allowInterop(rect),
roundRect: roundRect == null ? null : _i4.allowInterop(roundRect),
);