ViewModelBuilder<T extends ViewModel> constructor

const ViewModelBuilder<T extends ViewModel>({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. T model,
    3. Widget? child
    ),
  3. required T model,
  4. bool disposable = true,
  5. bool initOnce = true,
  6. bool implicitView = false,
  7. bool shouldRebuild(
    1. T prev,
    2. T next
    )?,
  8. Widget? child,
})

Implementation

const ViewModelBuilder({
  Key? key,
  required this.builder,
  required this.model,
  this.disposable = true,
  this.initOnce = true,
  this.implicitView = false,
  this.shouldRebuild,
  this.child,
}) : super(key: key);