ImageDecoderInit constructor
ImageDecoderInit({
- required String type,
- dynamic data,
- PremultiplyAlpha? premultiplyAlpha,
- ColorSpaceConversion? colorSpaceConversion,
- int? desiredWidth,
- int? desiredHeight,
- bool? preferAnimation,
Implementation
factory ImageDecoderInit(
{required String type,
dynamic data,
PremultiplyAlpha? premultiplyAlpha,
ColorSpaceConversion? colorSpaceConversion,
int? desiredWidth,
int? desiredHeight,
bool? preferAnimation}) =>
ImageDecoderInit._(
type: type,
data: data ?? undefined,
premultiplyAlpha:
premultiplyAlpha?.value ?? PremultiplyAlpha.valueDefault.value,
colorSpaceConversion: colorSpaceConversion?.value ??
ColorSpaceConversion.valueDefault.value,
desiredWidth: desiredWidth ?? undefined,
desiredHeight: desiredHeight ?? undefined,
preferAnimation: preferAnimation ?? undefined);