Future<void> loadUrl(String url) async { final state = globalKey.currentState; if (state != null) { await state.loadUrl(url); } }