isServer top-level constant
Determine if DSS is running on the server.
On the server, please set an environment variable dss
to server
.
dart main.dart --Ddss=server
Implementation
const isServer = const String.fromEnvironment('dss') == 'server'