Commit eb2518f2 authored by Alex's avatar Alex Committed by Ian Hickson

fix(typo) desc of jumpToPage (#12320)

parent fd04d4d1
...@@ -101,10 +101,8 @@ class PageController extends ScrollController { ...@@ -101,10 +101,8 @@ class PageController extends ScrollController {
/// Changes which page is displayed in the controlled [PageView]. /// Changes which page is displayed in the controlled [PageView].
/// ///
/// The animation lasts for the given duration and follows the given curve. /// Jumps the page position from its current value to the given value,
/// The returned [Future] resolves when the animation completes. /// without animation, and without checking if the new value is in range.
///
/// The `duration` and `curve` arguments must not be null.
void jumpToPage(int page) { void jumpToPage(int page) {
final _PagePosition position = this.position; final _PagePosition position = this.position;
position.jumpTo(position.getPixelsFromPage(page.toDouble())); position.jumpTo(position.getPixelsFromPage(page.toDouble()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment