copyWith method
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,
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,
);
}