CanvasTransform constructor

CanvasTransform({
  1. DOMMatrix getTransform()?,
  2. void resetTransform()?,
  3. void rotate(
    1. num
    )?,
  4. void scale(
    1. num,
    2. num
    )?,
  5. void transform(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  6. void translate(
    1. num,
    2. num
    )?,
})

Implementation

factory CanvasTransform({
  _i3.DOMMatrix Function()? getTransform,
  void Function()? resetTransform,
  void Function(_i2.num)? rotate,
  void Function(
    _i2.num,
    _i2.num,
  )? scale,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? transform,
  void Function(
    _i2.num,
    _i2.num,
  )? translate,
}) =>
    CanvasTransform._(
      getTransform:
          getTransform == null ? null : _i4.allowInterop(getTransform),
      resetTransform:
          resetTransform == null ? null : _i4.allowInterop(resetTransform),
      rotate: rotate == null ? null : _i4.allowInterop(rotate),
      scale: scale == null ? null : _i4.allowInterop(scale),
      transform: transform == null ? null : _i4.allowInterop(transform),
      translate: translate == null ? null : _i4.allowInterop(translate),
    );