@override Future<void> connect(String host, {int? port}) async { await methodChannel .invokeMethod('connect', {"host": host, "port": port ?? 6466}); }