copyWith method

BotAccessSettings copyWith({
  1. bool? isRestricted,
  2. List<int>? addedUserIds,
  3. dynamic extra,
  4. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

BotAccessSettings copyWith({
  bool? isRestricted,
  List<int>? addedUserIds,
  dynamic extra,
  int? clientId,
}) => BotAccessSettings(
  isRestricted: isRestricted ?? this.isRestricted,
  addedUserIds: addedUserIds ?? this.addedUserIds,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);