layoutData property

LayoutData? layoutData

A variable to hold additional data created during layout which can be used while painting and hit testing.

Implementation

LayoutData? get layoutData => render.layoutData as LayoutData?;
void layoutData=(LayoutData? data)

Implementation

set layoutData(LayoutData? data) {
  assert(() {
    if (debugPhase != BoxyDelegatePhase.layout) {
      throw FlutterError(
          'The $this boxy delegate attempted to set layout data outside of the layout method.\n');
    }
    return true;
  }());
  _render!.layoutData = data;
}