copyWith method

ApplicationRole copyWith({
  1. List<String>? defaultGroups,
  2. List<GroupName>? defaultGroupsDetails,
  3. bool? defined,
  4. List<GroupName>? groupDetails,
  5. List<String>? groups,
  6. bool? hasUnlimitedSeats,
  7. String? key,
  8. String? name,
  9. int? numberOfSeats,
  10. bool? platform,
  11. int? remainingSeats,
  12. bool? selectedByDefault,
  13. int? userCount,
  14. String? userCountDescription,
})

Implementation

ApplicationRole copyWith(
    {List<String>? defaultGroups,
    List<GroupName>? defaultGroupsDetails,
    bool? defined,
    List<GroupName>? groupDetails,
    List<String>? groups,
    bool? hasUnlimitedSeats,
    String? key,
    String? name,
    int? numberOfSeats,
    bool? platform,
    int? remainingSeats,
    bool? selectedByDefault,
    int? userCount,
    String? userCountDescription}) {
  return ApplicationRole(
    defaultGroups: defaultGroups ?? this.defaultGroups,
    defaultGroupsDetails: defaultGroupsDetails ?? this.defaultGroupsDetails,
    defined: defined ?? this.defined,
    groupDetails: groupDetails ?? this.groupDetails,
    groups: groups ?? this.groups,
    hasUnlimitedSeats: hasUnlimitedSeats ?? this.hasUnlimitedSeats,
    key: key ?? this.key,
    name: name ?? this.name,
    numberOfSeats: numberOfSeats ?? this.numberOfSeats,
    platform: platform ?? this.platform,
    remainingSeats: remainingSeats ?? this.remainingSeats,
    selectedByDefault: selectedByDefault ?? this.selectedByDefault,
    userCount: userCount ?? this.userCount,
    userCountDescription: userCountDescription ?? this.userCountDescription,
  );
}