execute method

  1. @override
Future<String?> execute(
  1. BuildContext context
)
override

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) async {
  if (evaluationDelayInSeconds > 0) {
    await Future.delayed(Duration(seconds: evaluationDelayInSeconds));
  }

  return value.toString();
}