SmartComponent<Payload, Result> constructor
const
SmartComponent<Payload, Result> ({
- required SmartRepository<
Payload, Result> repository, - required Widget builder(
- BuildContext,
- SmartState<
Result>
- Key? key,
- ComponentInitialAction<
Payload> initialAction = const ComponentInitialAction.none(), - dynamic listener(
- BuildContext,
- SmartState<
Result>
- dynamic onControllerCreated(
- SmartComponentController<
Payload, Result>
- SmartComponentController<
Implementation
const SmartComponent({
required this.repository,
required this.builder,
super.key,
this.initialAction = const ComponentInitialAction.none(),
this.listener,
this.onControllerCreated,
});