kIsDartLibraryUI top-level constant
bool
const kIsDartLibraryUI
A constatnt that can be used to check if your app is running in a Dart only
or Flutter environment. It's true if dart.library.ui is defined and
false otherwise.
Implementation
const kIsDartLibraryUI = bool.fromEnvironment('dart.library.ui');