예제 #1
0
        public static ModalRoute of(BuildContext context)
        {
            _ModalScopeStatus widget =
                (_ModalScopeStatus)context.inheritFromWidgetOfExactType(typeof(_ModalScopeStatus));

            return((ModalRoute)widget?.route);
        }
예제 #2
0
        public static ModalRoute of(BuildContext context)
        {
            _ModalScopeStatus widget = context.dependOnInheritedWidgetOfExactType <_ModalScopeStatus>();

            return(widget?.route as ModalRoute);
        }