copyWith method

CanvasModel copyWith({
  1. int? width,
  2. int? height,
  3. BackgroundModel? background,
  4. String? backgroundImage,
})

Implementation

CanvasModel copyWith({
  int? width,
  int? height,
  BackgroundModel? background,
  String? backgroundImage,
}) {
  return CanvasModel(
    width: width ?? this.width,
    height: height ?? this.height,
    background: background ?? this.background,
    backgroundImage: backgroundImage ?? this.backgroundImage,
  );
}