updateChildren method

int updateChildren()

Implementation

int updateChildren(){
  if(widget.itemBuilder != null) return 0;
  var oldLen = children?.length ?? 0;
  if(widget.children != null){
    children = widget.children!(context);
  }else if(widget.child != null){
    children = [widget.child!(context)];
  }
  return children!.length - oldLen;
}