CanvasFillStrokeStyles constructor
CanvasFillStrokeStyles({})
Implementation
factory CanvasFillStrokeStyles({
_i2.Object? fillStyle,
_i2.Object? strokeStyle,
_i3.CanvasGradient Function(
_i2.num,
_i2.num,
_i2.num,
)? createConicGradient,
_i3.CanvasGradient Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? createLinearGradient,
_i3.CanvasPattern? Function(
_i2.Object, [
_i2.String?,
])? createPattern,
_i3.CanvasGradient Function(
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
_i2.num,
)? createRadialGradient,
}) =>
CanvasFillStrokeStyles._(
fillStyle: fillStyle ?? _i6.undefined,
strokeStyle: strokeStyle ?? _i6.undefined,
createConicGradient: createConicGradient == null
? null
: _i4.allowInterop(createConicGradient),
createLinearGradient: createLinearGradient == null
? null
: _i4.allowInterop(createLinearGradient),
createPattern: createPattern == null
? null
: _i4.allowInterop((
p0,
p1,
) =>
() =>
createPattern(
p0,
p1,
) ??
_i6.undefined),
createRadialGradient: createRadialGradient == null
? null
: _i4.allowInterop(createRadialGradient),
);