INNER CODE UNIT · Dart
PREVIOUS
best-flutter/transformer_page_view · lib/index_controller.dart:8
static const int PREVIOUS = -1;
static const int MOVE = 0;
Completer _completer;
int index;
bool animation;
int event;
Future move(int index, {bool animation: true}) {
this.animation = animation ?? true;
this.index = index;
this.event = MOVE;
_completer = new Completer();
notifyListeners();
return _completer.future;
}