CanvasRenderingContext2DSettings constructor
CanvasRenderingContext2DSettings({
- bool? alpha,
- bool? desynchronized,
- PredefinedColorSpace? colorSpace,
- bool? willReadFrequently,
Implementation
factory CanvasRenderingContext2DSettings(
{bool? alpha,
bool? desynchronized,
PredefinedColorSpace? colorSpace,
bool? willReadFrequently}) =>
CanvasRenderingContext2DSettings._(
alpha: alpha ?? true,
desynchronized: desynchronized ?? false,
colorSpace: colorSpace?.value ?? PredefinedColorSpace.srgb.value,
willReadFrequently: willReadFrequently ?? false);