delegate property
Supplies children for layout in the viewport.
Implementation
TwoDimensionalChildDelegate get delegate => _delegate;
covariant
Implementation
set delegate(covariant TwoDimensionalChildDelegate value) {
if (_delegate == value) {
return;
}
if (attached) {
_delegate.removeListener(_handleDelegateNotification);
}
final TwoDimensionalChildDelegate oldDelegate = _delegate;
_delegate = value;
if (attached) {
_delegate.addListener(_handleDelegateNotification);
}
if (_delegate.runtimeType != oldDelegate.runtimeType || _delegate.shouldRebuild(oldDelegate)) {
_handleDelegateNotification();
}
}