SmartComponent<Payload, Result> constructor

const SmartComponent<Payload, Result>({
  1. required SmartRepository<Payload, Result> repository,
  2. required Widget builder(
    1. BuildContext,
    2. SmartState<Result>
    ),
  3. Key? key,
  4. ComponentInitialAction<Payload> initialAction = const ComponentInitialAction.none(),
  5. dynamic listener(
    1. BuildContext,
    2. SmartState<Result>
    )?,
  6. dynamic onControllerCreated(
    1. SmartComponentController<Payload, Result>
    )?,
})

Implementation

const SmartComponent({
  required this.repository,
  required this.builder,
  super.key,
  this.initialAction = const ComponentInitialAction.none(),
  this.listener,
  this.onControllerCreated,
});