hasChild method

bool hasChild(
  1. Object childId
)

True if a non-null LayoutChild was provided for the specified id.

Call this from the performLayout method to determine which children are available, if the child list might vary.

This method cannot be called from getSize as the size is not allowed to depend on the children.

Implementation

bool hasChild(Object childId) => _idToChild![childId] != null;