INNER CODE UNIT · Dart
TutorialCoachMarkController
RafaelBarbosatec/tutorial_coach_mark · lib/src/util.dart:80
abstract class TutorialCoachMarkController {
/// Advances to the next step in the tutorial.
void next();
/// Goes back to the previous step in the tutorial.
void previous();
/// Skips the entire tutorial.
void skip();
}
/// Extension on [State] to provide safe state updates.
extension StateExt on State {
/// Safely calls [setState] only if the widget is still mounted.
///
/// This prevents errors when trying to update state after the widget
/// has been disposed or removed from the widget tree.
void safeSetState(VoidCallback call) {