parentDataOf method
- RenderBox child
Convenience method for retrieving and casting the ParentData of the viewport's children.
Children must have a ParentData of type TwoDimensionalViewportParentData, or a subclass thereof.
Implementation
@protected
@mustCallSuper
TwoDimensionalViewportParentData parentDataOf(RenderBox child) {
assert(_children.containsValue(child) ||
_keepAliveBucket.containsValue(child) ||
_debugOrphans!.contains(child));
return child.parentData! as TwoDimensionalViewportParentData;
}