BaseView<T extends BaseViewModel> constructor

BaseView<T extends BaseViewModel>({
  1. Key? key,
  2. required T model,
  3. required Widget child,
  4. dynamic onModelReady(
    1. T model
    )?,
  5. bool autoDispose = true,
  6. Widget? busyWidget,
  7. Widget? emptyWidget,
  8. Widget? errorWidget,
  9. dynamic onRefresh(
    1. T model
    )?,
})

Implementation

BaseView({
  Key? key,
  required this.model,
  required this.child,
  this.onModelReady,
  this.autoDispose = true,
  this.busyWidget,
  this.emptyWidget,
  this.errorWidget,
  this.onRefresh,
}) : super(key: key);