copyWith method

  1. @override
PrettyQrTheme copyWith({
  1. PrettyQrDecoration? decoration,
})
override

Creates a copy of this theme with the given fields replaced by the non-null parameter values.

Implementation

@override
PrettyQrTheme copyWith({
  final PrettyQrDecoration? decoration,
}) {
  return PrettyQrTheme(
    decoration: decoration ?? this.decoration,
  );
}