copyWith method
- @factory
- @useResult
- PrettyQrShape? shape,
- Color? background,
- 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,
);
}