ViewModelBuilder<TViewModel extends ViewModel> constructor
const
ViewModelBuilder<TViewModel extends ViewModel> ({})
Implementation
const ViewModelBuilder({
required TViewModel viewModel,
this.onLoad,
required Widget Function(BuildContext context, TViewModel viewModel,
BaseEvent? previousEvent, BaseEvent? event)
builder,
void Function(BaseEvent? previous, BaseEvent? current)? listener,
bool Function(
TViewModel viewModel, BaseEvent? previous, BaseEvent? current)?
buildWhen,
}) : super(
builder: builder,
model: viewModel,
buildWhen: buildWhen,
listener: listener);