copyWith method

  1. @override
UserTypeBot copyWith({
  1. bool? canJoinGroups,
  2. bool? canReadAllGroupMessages,
  3. bool? isInline,
  4. String? inlineQueryPlaceholder,
  5. bool? needLocation,
})
override

Implementation

@override
UserTypeBot copyWith({
  bool? canJoinGroups,
  bool? canReadAllGroupMessages,
  bool? isInline,
  String? inlineQueryPlaceholder,
  bool? needLocation,
}) => UserTypeBot(
  canJoinGroups: canJoinGroups ?? this.canJoinGroups,
  canReadAllGroupMessages: canReadAllGroupMessages ?? this.canReadAllGroupMessages,
  isInline: isInline ?? this.isInline,
  inlineQueryPlaceholder: inlineQueryPlaceholder ?? this.inlineQueryPlaceholder,
  needLocation: needLocation ?? this.needLocation,
);