delegate property
The delegate that controls the transformation matrices of the children.
Implementation
FlowDelegate get delegate => _delegate;
When the delegate is changed to a new delegate with the same runtimeType as the old delegate, this object will call the delegate's FlowDelegate.shouldRelayout and FlowDelegate.shouldRepaint functions to determine whether the new delegate requires this object to update its layout or painting.
Implementation
set delegate(FlowDelegate newDelegate) {
if (_delegate == newDelegate) {
return;
}
final FlowDelegate oldDelegate = _delegate;
_delegate = newDelegate;
if (newDelegate.runtimeType != oldDelegate.runtimeType || newDelegate.shouldRelayout(oldDelegate)) {
markNeedsLayout();
} else if (newDelegate.shouldRepaint(oldDelegate)) {
markNeedsPaint();
}
if (attached) {
oldDelegate._repaint?.removeListener(markNeedsPaint);
newDelegate._repaint?.addListener(markNeedsPaint);
}
}