Testing
Every part of the SDK runs in a test with no network and no device. The client takes your HTTP client and reads a clock a zone overrides. The map and navigation have scripted twins.
Every request leaves through package:http's Client, so a test answers it with MockClient:
Add http to your test dependencies. A client handed httpClient: leaves it open on close().
The client reads the time through package:clock, which fake_async overrides. A test drives retries, the session engine and a stream's silence with no time spent:
ScriptedMapSurface draws a map nowhere. It answers what a renderer would, records each move and fit, and plays taps and loaded tiles:
Under flutter test, MapView draws on a ScriptedMapSurface too, so a widget test of your screen needs no device.
ScriptedNavigationEngine follows a route exactly as the device engine does, and your test answers each route request:
Every error has a public constructor, so a test builds the failure your code handles: