copyWith method

  1. @factory
  2. @useResult
PrettyQrDecoration copyWith({
  1. PrettyQrShape? shape,
  2. Color? background,
  3. PrettyQrDecorationImage? image,
})

Creates a copy of this PrettyQrDecoration but with the given fields replaced with the new values.

Implementation

@factory
@useResult
PrettyQrDecoration copyWith({
  final PrettyQrShape? shape,
  final Color? background,
  final PrettyQrDecorationImage? image,
}) {
  return PrettyQrDecoration(
    shape: shape ?? this.shape,
    background: background ?? this.background,
    image: image ?? this.image,
  );
}