浏览代码

fix pushReplacementNamed<T,TO>

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
e7717e94
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 9
      com.unity.uiwidgets/Runtime/widgets/navigator.cs

9
com.unity.uiwidgets/Runtime/widgets/navigator.cs


return route;
}
public Route<T> _routeNamed<T>(string name, object arguments, bool allowNull = false) {
public Route _routeNamed<T>(string name, object arguments, bool allowNull = false) {
D.assert(!_debugLocked);
D.assert(name != null);
if (allowNull && widget.onGenerateRoute == null)

arguments: arguments
);
var routeee = widget.onGenerateRoute(settings);
Route<T> route = routeee as Route<T>;
Route route = widget.onGenerateRoute(settings);
if (route == null && !allowNull) {
D.assert(() => {
if (widget.onUnknownRoute == null) {

public Future<T> pushReplacement<T, TO>(Route<T> newRoute, TO result) {
public Future<T> pushReplacement<T, TO>(Route newRoute, TO result) {
D.assert(!_debugLocked);
D.assert(() => {
_debugLocked = true;

}
public Future<T> pushAndRemoveUntil<T>(Route<T> newRoute, RoutePredicate predicate) {
public Future<T> pushAndRemoveUntil<T>(Route newRoute, RoutePredicate predicate) {
D.assert(!_debugLocked);
D.assert(() => {
_debugLocked = true;

正在加载...
取消
保存