invoke method
Implementation
@override
String invoke(String method, params, InvokeModuleCallback callback) {
switch (method) {
case 'getConnectivity': {
getConnectivity((Map json) {
callback(data: json);
});
break;
}
case 'onConnectivityChanged': {
onConnectivityChanged((Map data) {
moduleManager!.emitModuleEvent(name, data: data);
});
break;
}
}
return '';
}