recentExceptionsReader top-level property

List<Map<String, dynamic>> Function({int limit}) recentExceptionsReader
getter/setter pair

Reader for recent exception entries from TelescopeStore.

Defaults to a function that returns an empty list so dusk compiles and runs without telescope present (missing-telescope graceful path).

Hosts that ship fluttersdk_telescope wire the real source by assigning:

recentExceptionsReader = ({int limit = 20}) =>
    TelescopeStore.recentExceptions(limit: limit);

The indirection keeps dusk's pubspec free of a telescope dependency.

Contract: set-once-per-isolate from MagicTelescopeIntegration.install(). Reset to the empty-list default by MagicTelescopeIntegration.resetForTesting() so downstream tests asserting the missing-telescope default do not see leaked bindings.

Implementation

List<Map<String, dynamic>> Function({int limit}) recentExceptionsReader =
    ({int limit = 20}) => const [];