CanvasPath constructor

CanvasPath({
  1. void arc(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num, [
    6. bool?,
    ])?,
  2. void arcTo(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    )?,
  3. void bezierCurveTo(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  4. void closePath()?,
  5. void ellipse(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    7. num, [
    8. bool?,
    ])?,
  6. void lineTo(
    1. num,
    2. num
    )?,
  7. void moveTo(
    1. num,
    2. num
    )?,
  8. void quadraticCurveTo(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  9. void rect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  10. void roundRect(
    1. num,
    2. num,
    3. num,
    4. num, [
    5. Object?,
    ])?,
})

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),
    );