isWebServer property

bool isWebServer
getter/setter pair

True only in the web server process (startServer() and its isolates). It is false in bin/queue.dart, the scheduler and tests that only start providers. A provider can use it to do work only when the app really serves requests.

Implementation

bool isWebServer = false;