init method
Implementation
Future<void> init({String? jsCode}) async {
final c = Completer();
if (_runner == null) {
_runner = BridgeRunner();
await _runner?.launch(() {
if (!c.isCompleted) c.complete();
}, jsCode: jsCode);
} else {
await _runner?.reload();
if (!c.isCompleted) c.complete();
}
_retainCount++;
return c.future;
}