addViewModel method

  1. @override
void addViewModel(
  1. RenderViewModel child,
  2. int index
)
override

Implementation

@override
void addViewModel(RenderViewModel child, int index) {
  if (child is RefreshWrapperItemRenderViewModel) {
    _refreshWrapperItemRenderViewModel = child;
  } else {
    _content = child;
  }
  super.addViewModel(child, index);
}