applyNewDimensions method
- @protected
- @mustCallSuper
@mustCallSuper, @protected
Notifies the activity that the dimensions of the underlying viewport or contents have changed.
Called after applyViewportDimension or applyContentDimensions have changed the minScrollExtent, the maxScrollExtent, or the viewportDimension. When this method is called, it should be called after any corrections are applied to pixels using correctPixels, not before.
The default implementation informs the activity of the new dimensions by calling its ScrollActivity.applyNewDimensions method.
See also:
- applyViewportDimension, which is called when new viewport dimensions are established.
- applyContentDimensions, which is called after new viewport dimensions are established, and also if new content dimensions are established, and which calls ScrollPosition.applyNewDimensions.
Implementation
@protected
@mustCallSuper
void applyNewDimensions() {
assert(pixels != null);
activity.applyNewDimensions();
_updateSemanticActions(); // will potentially request a semantics update.
}