PairChildViewModelProvider<PVM extends ChangeNotifier, VM extends ChangeNotifier> constructor

PairChildViewModelProvider<PVM extends ChangeNotifier, VM extends ChangeNotifier>({
  1. Key? key,
  2. required VM create(
    1. BuildContext context,
    2. PVM parent
    ),
  3. PairViewModelWidgetCallback<PVM, VM>? initViewModel,
  4. PairViewModelWidgetCallback<PVM, VM>? initFrame,
  5. PairViewModelWidgetCallback<PVM, VM>? bindViewModel,
  6. PairViewModelWidgetCallback<PVM, VM>? disposeViewModel,
  7. PairViewModelWidgetChange<PVM, VM>? changeViewModel,
  8. Widget? child,
  9. PairViewModelWidgetBuilder<PVM, VM>? builder,
})

Implementation

PairChildViewModelProvider({
  Key? key,
  required this.create,
  this.initViewModel,
  this.initFrame,
  this.bindViewModel,
  this.disposeViewModel,
  this.changeViewModel,
  Widget? child,
  this.builder,
}) : super(key: key, child: child);