@override Future<void> closeChat() async { try { await methodChannel.invokeMethod<void>('closeChat'); } on PlatformException { 'Failed to get close chat.'; } }