NyStatefulWidget<T extends BaseController> constructor

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

Implementation

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