YaruPageController({required this.length, this.initialIndex = -1}) : _index = initialIndex, _previousIndex = initialIndex;