copyWith method

PremultipliedRgba8Image copyWith({
  1. int? width,
  2. int? height,
  3. int? stride,
  4. Uint8List? pixels,
})

A copy of this value with the given members replaced.

Implementation

PremultipliedRgba8Image copyWith({
  int? width,
  int? height,
  int? stride,
  Uint8List? pixels,
}) => PremultipliedRgba8Image(
  width: width ?? this.width,
  height: height ?? this.height,
  stride: stride ?? this.stride,
  pixels: pixels ?? this.pixels,
);