copyWith method

ImageData copyWith({
  1. ScreenSize? size,
  2. ImageFormat? format,
  3. ByteData? data,
})

Implementation

ImageData copyWith({
  ScreenSize? size,
  ImageFormat? format,
  ByteData? data
}) {
  return ImageData(
    size: size ?? this.size,
    format: format ?? this.format,
    data: data ?? this.data
  );
}