popWithResult method
关闭当前窗口,并附带返回值 示例: RouterProxy.getInstance().popWithResult('从页面返回的数据');
Implementation
void popWithResult([Object? result]) {
if (navigatorKey.currentState?.canPop() ?? false) {
navigatorKey.currentState?.pop(result);
}
}
关闭当前窗口,并附带返回值 示例: RouterProxy.getInstance().popWithResult('从页面返回的数据');
void popWithResult([Object? result]) {
if (navigatorKey.currentState?.canPop() ?? false) {
navigatorKey.currentState?.pop(result);
}
}