Open marcglasberg opened 4 months ago
Interesting use case! Hmm.. I will need to give this one some thought.
@marcglasberg One trick you could do right now is check if you're running in Flutter:
const runningInFlutter = bool.fromEnvironment('dart.library.ui');
Nice trick!
When I have some function that's used in both the frontend and the backend, it may need to know if it's running in the client (
my_app/lib/
) or in the Celest dir (my_app/celest/
).Just knowing this fact is important, but it also helps me to choose between using
celest
orcelestBackend
when I want to check theCelestEnvironment
.