CanvasRect constructor

CanvasRect({
  1. void clearRect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  2. void fillRect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  3. void strokeRect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
})

Implementation

factory CanvasRect({
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? clearRect,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? fillRect,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? strokeRect,
}) =>
    CanvasRect._(
      clearRect: clearRect == null ? null : _i4.allowInterop(clearRect),
      fillRect: fillRect == null ? null : _i4.allowInterop(fillRect),
      strokeRect: strokeRect == null ? null : _i4.allowInterop(strokeRect),
    );