debugStaticValue method

  1. @override
Future<String?> debugStaticValue(
  1. String id
)
override

What a static intent would answer with, read out of what was published.

The same read the native side does — the spoken text of the stored result — so a test can assert that publishing and reading back agree without a device.

Implementation

@override
Future<String?> debugStaticValue(String id) async {
  final wire = staticValues[id];
  if (wire is! Map) return null;
  return (wire['spoken'] ?? wire['displayed']) as String?;
}