ViewModelConsumer constructor

const ViewModelConsumer({
  1. Key? key,
  2. ViewModelShareStrategy shareStrategy = ViewModelShareStrategy.none,
  3. required List<ViewModelFactory<ViewModel>> creators,
  4. TransitionBuilder? builder,
  5. Widget? child,
})

Implementation

const ViewModelConsumer({
  super.key,
  this.shareStrategy = ViewModelShareStrategy.none,
  required this.creators,
  this.builder,
  this.child,
});