bifrostUseFakes top-level property

bool bifrostUseFakes
getter/setter pair

When true, BifrostRepository.fetch returns model.fake() instead of calling the API.

For development — building screens before an endpoint exists. Set it from a compile-time flag so release builds drop the branch entirely:

bifrostUseFakes = Environment.useMocks;

This short-circuits above the HTTP layer, so nothing below the repository runs: no request, no deserialization, no caching, no SystemNotifier. That's the point in dev, and the reason tests should leave this false and use useMockClient() instead — tests want the real stack exercised against a fake socket.

Implementation

bool bifrostUseFakes = false;