start static method Null safety

Future start(
  1. String ssid,
  2. String pass,
  3. int timeout
)

Implementation

static Future start(String ssid, String pass, int timeout) async {
  try {
    Map<String, dynamic> rm = new Map<String, dynamic>.from(await _channel.invokeMethod('start', {"ssid": ssid, "password": pass, "timeout": timeout}));
    return rm;
  } catch(err){
    print("Error===, $err");
    return null;
  }
}