recentLogsReader top-level property

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

Reader for recent log 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:

recentLogsReader = ({int limit = 50, String? minLevel}) =>
    TelescopeStore.recentLogs(limit: limit, minLevel: minLevel);

The indirection keeps dusk's pubspec free of a telescope dependency while letting the console handler still read real logs when telescope is wired.

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, String? minLevel})
    recentLogsReader = ({int limit = 50, String? minLevel}) => const [];