performConditionCheck method
Performs the condition check for this waiting step.
Checks if the loaded widget key has a current context, indicating visibility.
Implementation
@override
Future<bool> performConditionCheck() async {
return TutorialStepWithWaiting.conditionWithTimeout(timeout, () {
GlobalKey? widgetKey = loadFromRepository?.call();
if (widgetKey == null) {
return false;
}
return widgetKey.currentContext != null;
});
}