copyWith method

Entitlement copyWith({
  1. String? id,
  2. bool? active,
  3. String? expiresAt,
  4. String? productId,
})

Implementation

Entitlement copyWith({
  String? id,
  bool? active,
  String? expiresAt,
  String? productId,
}) =>
    Entitlement(
      id: id ?? this.id,
      active: active ?? this.active,
      expiresAt: expiresAt ?? this.expiresAt,
      productId: productId ?? this.productId,
    );