ViewConfig<VM extends BaseViewModel<BaseModel, BaseEntity>>.value constructor

ViewConfig<VM extends BaseViewModel<BaseModel, BaseEntity>>.value({
  1. Widget? child,
  2. Color? color,
  3. bool load = false,
  4. bool checkEmpty = true,
  5. int? state,
  6. bool value = true,
  7. VSBuilder<VM>? busy,
  8. VSBuilder<VM>? empty,
  9. VSBuilder<VM>? error,
  10. VSBuilder<VM>? unAuthorized,
  11. bool? isStatusPage,
  12. dynamic root = true,
})

Implementation

ViewConfig.value({
  this.child,
  this.color,
  this.load = false,
  this.checkEmpty = true,
  this.state,
  this.value = true,
  this.busy,
  this.empty,
  this.error,
  this.unAuthorized,
  this.isStatusPage,
  root = true,
}) {
  setViewState();
  vm.rootRefresh = root;
}