attach method
Register the given position with this controller.
After this function returns, the animateTo and jumpTo methods on this controller will manipulate the given position.
Implementation
@override
void attach(ScrollPosition position) {
assert(
position is MultiDateScrollPosition,
'MultiDateScrollControllers can only be used with '
'MultiDateScrollPositions.',
);
final linkedPosition = position as MultiDateScrollPosition;
assert(
linkedPosition.controller == controller,
'MultiDateScrollPosition cannot change controllers once created.',
);
super.attach(position);
}