addViewModel method

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

Implementation

@override
void addViewModel(RenderViewModel child, int index) {
  if (child is ListPullHeaderViewModel) {
    pullHeaderViewModel = child;
  } else if (child is ListPullFooterViewModel) {
    pullFooterViewModel = child;
  }
  super.addViewModel(child, index);
}