Exception: Unsupported Operation: Rawsocket Constructor (dart With Sqljocky5: ^2.2.1)
I am trying to connect dart with a MySQL database. I installed the MySQL workbench and created a simple DB, have modified the pubspec.yaml and added any other dependencies I neede
Solution 1:
The code seems to be doing this :-
RawSocket.connect(host, port);
However there is no connect method on RawSocket, see here
This may have changed in Dart 2.2, the get/set RawOption methods have been added for instance
Solution 2:
https://api.dart.dev/stable/2.2.0/dart-io/RawSocket/connect.html
external static Future connect(host, int port, {sourceAddress, Duration timeout});
Post a Comment for "Exception: Unsupported Operation: Rawsocket Constructor (dart With Sqljocky5: ^2.2.1)"