copyWith method

  1. @override
FastInAppPurchase copyWith({
  1. String? productId,
  2. bool? enabled,
})
override

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

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastInAppPurchase copyWith({
  String? productId,
  bool? enabled,
}) =>
    FastInAppPurchase(
      productId: productId ?? this.productId,
      enabled: enabled ?? this.enabled,
    );