previous method
void
previous()
Implementation
void previous() {
final scope = _active;
if (scope.order.isEmpty) return;
final idx = scope.current == null ? 0 : scope.order.indexOf(scope.current!);
final prevIdx = (idx - 1 + scope.order.length) % scope.order.length;
scope.current = scope.order[prevIdx];
}