shouldLoadView property

  1. @override
bool get shouldLoadView
override

Check if the widget should be loaded.

Implementation

@override
bool get shouldLoadView {
  if (widget is NyStatefulWidget &&
      (widget as NyStatefulWidget).controller.routeGuards.isNotEmpty) {
    return (widget as NyStatefulWidget).controller.routeGuards.isNotEmpty;
  }
  return init is Future Function();
}