CanvasRenderingContext2DSettings constructor

CanvasRenderingContext2DSettings({
  1. bool? alpha,
  2. PredefinedColorSpace? colorSpace,
  3. bool? desynchronized,
  4. bool? willReadFrequently,
})

Implementation

factory CanvasRenderingContext2DSettings({
  _i2.bool? alpha,
  _i3.PredefinedColorSpace? colorSpace,
  _i2.bool? desynchronized,
  _i2.bool? willReadFrequently,
}) =>
    CanvasRenderingContext2DSettings._(
      alpha: alpha,
      colorSpace: colorSpace?.name ?? _i6.undefined,
      desynchronized: desynchronized,
      willReadFrequently: willReadFrequently,
    );