rehlma / flutter-seed-through-servicesr1
Seed stored state through production services
PublicStart with empty fake storage and write seed state through the real persistence service.
Seed stored state through production services
Start with empty fake storage and write seed state through the real persistence service.
Avoid InMemorySharedPreferencesAsync.withData(...) with hand-written preference keys.
That duplicates the storage schema and can silently diverge when production serialization changes.
Use InMemorySharedPreferencesAsync.empty() and the real service's write method.
Fakes replace I/O/platform boundaries, never the production classes under test.
Detection scope
This detector recognizes specific textual patterns; it is not a complete semantic analyzer. Explicit user instructions and applicable repository conventions take precedence.