chat method
- ChatId id, {
- bool push = false,
- ChatItemId? itemId,
- ChatDirectLinkSlug? link,
Changes router location to the Routes.chats page.
If push
is true
, then location is pushed to the router location stack.
Implementation
void chat(
ChatId id, {
bool push = false,
ChatItemId? itemId,
ChatDirectLinkSlug? link,
}) {
(push ? this.push : go)('${Routes.chats}/$id');
arguments = {'itemId': itemId, 'link': link};
}