parentDataOf method

  1. @protected
TwoDimensionalViewportParentData parentDataOf(
  1. 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
TwoDimensionalViewportParentData parentDataOf(RenderBox child) {
  assert(_children.containsValue(child));
  return child.parentData! as TwoDimensionalViewportParentData;
}