copyWith method

UserRole copyWith({
  1. List<UserRoleType>? roles,
  2. BotType? botType,
})

Implementation

UserRole copyWith({
  List<UserRoleType>? roles,
  BotType? botType,
}) {
  return UserRole(
    roles: roles ?? this.roles,
    botType: botType ?? this.botType,
  );
}