IContext constructor

IContext({
  1. Object? fillStyle,
  2. String? font,
  3. num? globalAlpha,
  4. String? lineCap,
  5. num? lineDashOffset,
  6. String? lineJoin,
  7. num? lineWidth,
  8. num? miterLimit,
  9. num? shadowBlur,
  10. String? shadowColor,
  11. num? shadowOffsetX,
  12. num? shadowOffsetY,
  13. Object? strokeStyle,
  14. String? textAlign,
  15. bool? imageSmoothingEnabled,
  16. bool? clipInsteadOfFill,
  17. bool? currentlyShadowed,
  18. bool? isTemporary,
  19. String? filter,
  20. dynamic cachedTransform,
  21. void commitTransform()?,
  22. void setImageSmoothingEnabled(
    1. bool
    )?,
  23. void arc(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. bool, [
    7. num?,
    8. num?,
    ])?,
  24. void beginPath()?,
  25. void endPath([
    1. num?
    ])?,
  26. void bezierCurveTo(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  27. void clearRect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  28. void clip()?,
  29. void closePath()?,
  30. UnionCommon4 createLinearGradient(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  31. Object createPattern(
    1. HTMLElement,
    2. String
    )?,
  32. UnionCommon5 createRadialGradient(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  33. void drawImage(
    1. HTMLElement,
    2. num,
    3. num, [
    4. num?,
    5. num?,
    6. num?,
    7. num?,
    8. num?,
    9. num?,
    ])?,
  34. void fill([
    1. bool?
    ])?,
  35. void fillRect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  36. void fillBackground(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  37. void fillText(
    1. String,
    2. num,
    3. num
    )?,
  38. ImageData getImageData(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  39. void lineTo(
    1. num,
    2. num
    )?,
  40. TextMetrics measureText(
    1. String
    )?,
  41. void moveTo(
    1. num,
    2. num
    )?,
  42. void quadraticCurveTo(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  43. void rect(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  44. void restore()?,
  45. void rotate(
    1. num
    )?,
  46. void save()?,
  47. void setTransform(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  48. void scale(
    1. num,
    2. num
    )?,
  49. void stroke()?,
  50. void transform(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
  51. void translate(
    1. num,
    2. num
    )?,
  52. void fillContext(
    1. dynamic, [
    2. bool?
    ])?,
  53. void strokeContext()?,
  54. void shadowsSet(
    1. num,
    2. num,
    3. num
    )?,
  55. void shadowsOff()?,
  56. void shadowsOn()?,
  57. void enableDash(
    1. Array<num>,
    2. num
    )?,
  58. void disableDash()?,
  59. void clearContextCache(
    1. bool
    )?,
  60. void removePartFromView(
    1. GraphObject
    )?,
})

Implementation

factory IContext({
  _i2.Object? fillStyle,
  _i2.String? font,
  _i2.num? globalAlpha,
  _i2.String? lineCap,
  _i2.num? lineDashOffset,
  _i2.String? lineJoin,
  _i2.num? lineWidth,
  _i2.num? miterLimit,
  _i2.num? shadowBlur,
  _i2.String? shadowColor,
  _i2.num? shadowOffsetX,
  _i2.num? shadowOffsetY,
  _i2.Object? strokeStyle,
  _i2.String? textAlign,
  _i2.bool? imageSmoothingEnabled,
  _i2.bool? clipInsteadOfFill,
  _i2.bool? currentlyShadowed,
  _i2.bool? isTemporary,
  _i2.String? filter,
  _i2.dynamic cachedTransform,
  void Function()? commitTransform,
  void Function(_i2.bool)? setImageSmoothingEnabled,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.bool, [
    _i2.num?,
    _i2.num?,
  ])? arc,
  void Function()? beginPath,
  void Function([_i2.num?])? endPath,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? bezierCurveTo,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? clearRect,
  void Function()? clip,
  void Function()? closePath,
  _i3.UnionCommon4 Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? createLinearGradient,
  _i2.Object Function(
    _i6.HTMLElement,
    _i2.String,
  )? createPattern,
  _i3.UnionCommon5 Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? createRadialGradient,
  void Function(
    _i6.HTMLElement,
    _i2.num,
    _i2.num, [
    _i2.num?,
    _i2.num?,
    _i2.num?,
    _i2.num?,
    _i2.num?,
    _i2.num?,
  ])? drawImage,
  void Function([_i2.bool?])? fill,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? fillRect,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? fillBackground,
  void Function(
    _i2.String,
    _i2.num,
    _i2.num,
  )? fillText,
  _i6.ImageData Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? getImageData,
  void Function(
    _i2.num,
    _i2.num,
  )? lineTo,
  _i6.TextMetrics Function(_i2.String)? measureText,
  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()? restore,
  void Function(_i2.num)? rotate,
  void Function()? save,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? setTransform,
  void Function(
    _i2.num,
    _i2.num,
  )? scale,
  void Function()? stroke,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? transform,
  void Function(
    _i2.num,
    _i2.num,
  )? translate,
  void Function(
    _i2.dynamic, [
    _i2.bool?,
  ])? fillContext,
  void Function()? strokeContext,
  void Function(
    _i2.num,
    _i2.num,
    _i2.num,
  )? shadowsSet,
  void Function()? shadowsOff,
  void Function()? shadowsOn,
  void Function(
    _i7.Array<_i2.num>,
    _i2.num,
  )? enableDash,
  void Function()? disableDash,
  void Function(_i2.bool)? clearContextCache,
  void Function(_i3.GraphObject)? removePartFromView,
}) =>
    IContext._(
      fillStyle: fillStyle ?? _i5.undefined,
      font: font,
      globalAlpha: globalAlpha,
      lineCap: lineCap,
      lineDashOffset: lineDashOffset,
      lineJoin: lineJoin,
      lineWidth: lineWidth,
      miterLimit: miterLimit,
      shadowBlur: shadowBlur,
      shadowColor: shadowColor,
      shadowOffsetX: shadowOffsetX,
      shadowOffsetY: shadowOffsetY,
      strokeStyle: strokeStyle ?? _i5.undefined,
      textAlign: textAlign,
      imageSmoothingEnabled: imageSmoothingEnabled,
      clipInsteadOfFill: clipInsteadOfFill,
      currentlyShadowed: currentlyShadowed,
      isTemporary: isTemporary,
      filter: filter,
      cachedTransform: cachedTransform,
      commitTransform:
          commitTransform == null ? null : _i4.allowInterop(commitTransform),
      setImageSmoothingEnabled: setImageSmoothingEnabled == null
          ? null
          : _i4.allowInterop(setImageSmoothingEnabled),
      arc: arc == null ? null : _i4.allowInterop(arc),
      beginPath: beginPath == null ? null : _i4.allowInterop(beginPath),
      endPath: endPath == null ? null : _i4.allowInterop(endPath),
      bezierCurveTo:
          bezierCurveTo == null ? null : _i4.allowInterop(bezierCurveTo),
      clearRect: clearRect == null ? null : _i4.allowInterop(clearRect),
      clip: clip == null ? null : _i4.allowInterop(clip),
      closePath: closePath == null ? null : _i4.allowInterop(closePath),
      createLinearGradient: createLinearGradient == null
          ? null
          : _i4.allowInterop(createLinearGradient),
      createPattern:
          createPattern == null ? null : _i4.allowInterop(createPattern),
      createRadialGradient: createRadialGradient == null
          ? null
          : _i4.allowInterop(createRadialGradient),
      drawImage: drawImage == null ? null : _i4.allowInterop(drawImage),
      fill: fill == null ? null : _i4.allowInterop(fill),
      fillRect: fillRect == null ? null : _i4.allowInterop(fillRect),
      fillBackground:
          fillBackground == null ? null : _i4.allowInterop(fillBackground),
      fillText: fillText == null ? null : _i4.allowInterop(fillText),
      getImageData:
          getImageData == null ? null : _i4.allowInterop(getImageData),
      lineTo: lineTo == null ? null : _i4.allowInterop(lineTo),
      measureText: measureText == null ? null : _i4.allowInterop(measureText),
      moveTo: moveTo == null ? null : _i4.allowInterop(moveTo),
      quadraticCurveTo: quadraticCurveTo == null
          ? null
          : _i4.allowInterop(quadraticCurveTo),
      rect: rect == null ? null : _i4.allowInterop(rect),
      restore: restore == null ? null : _i4.allowInterop(restore),
      rotate: rotate == null ? null : _i4.allowInterop(rotate),
      save: save == null ? null : _i4.allowInterop(save),
      setTransform:
          setTransform == null ? null : _i4.allowInterop(setTransform),
      scale: scale == null ? null : _i4.allowInterop(scale),
      stroke: stroke == null ? null : _i4.allowInterop(stroke),
      transform: transform == null ? null : _i4.allowInterop(transform),
      translate: translate == null ? null : _i4.allowInterop(translate),
      fillContext: fillContext == null ? null : _i4.allowInterop(fillContext),
      strokeContext:
          strokeContext == null ? null : _i4.allowInterop(strokeContext),
      shadowsSet: shadowsSet == null ? null : _i4.allowInterop(shadowsSet),
      shadowsOff: shadowsOff == null ? null : _i4.allowInterop(shadowsOff),
      shadowsOn: shadowsOn == null ? null : _i4.allowInterop(shadowsOn),
      enableDash: enableDash == null ? null : _i4.allowInterop(enableDash),
      disableDash: disableDash == null ? null : _i4.allowInterop(disableDash),
      clearContextCache: clearContextCache == null
          ? null
          : _i4.allowInterop(clearContextCache),
      removePartFromView: removePartFromView == null
          ? null
          : _i4.allowInterop(removePartFromView),
    );