CanvasFillStrokeStyles constructor

CanvasFillStrokeStyles({
  1. Object? fillStyle,
  2. Object? strokeStyle,
  3. CanvasGradient createConicGradient(
    1. num,
    2. num,
    3. num
    )?,
  4. CanvasGradient createLinearGradient(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  5. CanvasPattern? createPattern(
    1. Object, [
    2. String?
    ])?,
  6. CanvasGradient createRadialGradient(
    1. num,
    2. num,
    3. num,
    4. num,
    5. num,
    6. num,
    )?,
})

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),
    );