probe method

Future<String?> probe(
  1. String expression
)

Evaluates expression and returns its value as a string, or null when the expression is not a value expression.

Implementation

Future<String?> probe(String expression) async {
  final result = await evaluate(expression);
  if (result is ErrorRef) return null;
  return (result as InstanceRef).valueAsString;
}