delegate property

MultiChildLayoutDelegate delegate

The delegate that controls the layout of the children.

Implementation

MultiChildLayoutDelegate get delegate => _delegate;
void delegate=(MultiChildLayoutDelegate newDelegate)

Implementation

set delegate(MultiChildLayoutDelegate newDelegate) {
  if (_delegate == newDelegate) {
    return;
  }
  final MultiChildLayoutDelegate oldDelegate = _delegate;
  if (newDelegate.runtimeType != oldDelegate.runtimeType || newDelegate.shouldRelayout(oldDelegate)) {
    markNeedsLayout();
  }
  _delegate = newDelegate;
  if (attached) {
    oldDelegate._relayout?.removeListener(markNeedsLayout);
    newDelegate._relayout?.addListener(markNeedsLayout);
  }
}