CallbackTourStorage constructor
const
CallbackTourStorage({})
Creates a storage backed by isCompleted and setCompleted.
lastIndex and saveIndex are optional: supply both to support
TourController.start with resume: true, or neither to keep tours
starting from the beginning.
Implementation
const CallbackTourStorage({
required Future<bool> Function(String tour) isCompleted,
required Future<void> Function(String tour, bool completed) setCompleted,
Future<int?> Function(String tour)? lastIndex,
Future<void> Function(String tour, int? index)? saveIndex,
}) : _isCompleted = isCompleted,
_setCompleted = setCompleted,
_lastIndex = lastIndex,
_saveIndex = saveIndex;