copyWith method

CreateBot copyWith({
  1. int? managerBotUserId,
  2. String? name,
  3. String? username,
  4. bool? viaLink,
})

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

Implementation

CreateBot copyWith({
  int? managerBotUserId,
  String? name,
  String? username,
  bool? viaLink,
}) => CreateBot(
  managerBotUserId: managerBotUserId ?? this.managerBotUserId,
  name: name ?? this.name,
  username: username ?? this.username,
  viaLink: viaLink ?? this.viaLink,
);