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