roomOf method

  1. @override
double? roomOf(
  1. RenderObject child,
  2. RenderInset dependant
)
override

The width the boxes inside child take their shares of, or null where child is offered no room here; dependant is laid out again when it changes.

Implementation

@override
double? roomOf(RenderObject child, RenderInset dependant) {
  if (child is! RenderBox || child.parentData is! TrackCellParentData) return null;
  if (!(child.parentData! as TrackCellParentData).room) return null;
  (_roomers[child] ??= {}).add(dependant);
  return _rooms[child] ?? double.infinity;
}