ImageBitmapOptions constructor

ImageBitmapOptions({
  1. ImageOrientation? imageOrientation,
  2. PremultiplyAlpha? premultiplyAlpha,
  3. ColorSpaceConversion? colorSpaceConversion,
  4. int? resizeWidth,
  5. int? resizeHeight,
  6. ResizeQuality? resizeQuality,
})

Implementation

factory ImageBitmapOptions(
        {ImageOrientation? imageOrientation,
        PremultiplyAlpha? premultiplyAlpha,
        ColorSpaceConversion? colorSpaceConversion,
        int? resizeWidth,
        int? resizeHeight,
        ResizeQuality? resizeQuality}) =>
    ImageBitmapOptions._(
        imageOrientation:
            imageOrientation?.value ?? ImageOrientation.none.value,
        premultiplyAlpha:
            premultiplyAlpha?.value ?? PremultiplyAlpha.valueDefault.value,
        colorSpaceConversion: colorSpaceConversion?.value ??
            ColorSpaceConversion.valueDefault.value,
        resizeWidth: resizeWidth ?? undefined,
        resizeHeight: resizeHeight ?? undefined,
        resizeQuality: resizeQuality?.value ?? ResizeQuality.low.value);