LeaveChat constructor

const LeaveChat({
  1. required int chatId,
})

Removes the current user from chat members. Private and secret chats can't be left using this method

Implementation

const LeaveChat({
  required this.chatId,
});