copyWith method

DealerV2 copyWith({
  1. String? email,
  2. String? authId,
  3. String? dealerId,
  4. List<String>? scopes,
  5. List<String>? dealerGroups,
})

Implementation

DealerV2 copyWith(
    {String? email,
    String? authId,
    String? dealerId,
    List<String>? scopes,
    List<String>? dealerGroups}) {
  return DealerV2(
      email: email ?? this.email,
      authId: authId ?? this.authId,
      dealerId: dealerId ?? this.dealerId,
      scopes: scopes ?? this.scopes,
      dealerGroups: dealerGroups ?? this.dealerGroups);
}