copyWith method

  1. @override
KeyboardButtonTypeRequestManagedBot copyWith({
  1. int? id,
  2. String? suggestedName,
  3. String? suggestedUsername,
})
override

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

Implementation

@override
KeyboardButtonTypeRequestManagedBot copyWith({
  int? id,
  String? suggestedName,
  String? suggestedUsername,
}) => KeyboardButtonTypeRequestManagedBot(
  id: id ?? this.id,
  suggestedName: suggestedName ?? this.suggestedName,
  suggestedUsername: suggestedUsername ?? this.suggestedUsername,
);