fix(typo) desc of jumpToPage (#12320)

This commit is contained in:
Alex 2017-10-03 01:59:26 +02:00 committed by Ian Hickson
parent fd04d4d126
commit eb2518f20a

View File

@ -101,10 +101,8 @@ class PageController extends ScrollController {
/// Changes which page is displayed in the controlled [PageView].
///
/// The animation lasts for the given duration and follows the given curve.
/// The returned [Future] resolves when the animation completes.
///
/// The `duration` and `curve` arguments must not be null.
/// Jumps the page position from its current value to the given value,
/// without animation, and without checking if the new value is in range.
void jumpToPage(int page) {
final _PagePosition position = this.position;
position.jumpTo(position.getPixelsFromPage(page.toDouble()));