im tying to connect to my mysql database using mysql1 package, i've tried sqljocky as well, but both of them dont work. I get error Error: Unsupported operation: RawSocket constructor my code is exactly like in example, heres my code, maybe youll see what im doing wrong.
import 'package:mysql1/mysql1.dart';
class Database {
static var s = ConnectionSettings(
user: "user",
password: "password",
host: "host",
port: 3306,
db: "db",
);
static Future<MySqlConnection> connect() async{
return await MySqlConnection.connect(s);
}}