NyStatefulWidget<T extends BaseController> constructor

NyStatefulWidget<T extends BaseController>(
  1. String? path, {
  2. Key? key,
  3. State<StatefulWidget>? child,
})

Implementation

NyStatefulWidget(String? path, {Key? key, this.child})
    : state = path,
      super(key: key) {
  Nylo nylo = Backpack.instance.nylo();
  controller = nylo.getController(T) ?? NyController();
}