execute method
Evaluates this condition configuration.
The context
parameter provides access to the widget tree.
Returns:
- null if the condition passes
- an error message string if the condition fails
Implementation
@override
Future<String?> execute(BuildContext context) {
final isAuthenticated = switch (vyuh.auth.currentUser.loginMethod) {
LoginMethod.unknown || LoginMethod.anonymous => false,
_ => true,
};
return Future.value(isAuthenticated.toString());
}