Dev Environment access in custom code

Custom Code

Hi,

How can one acces to Dev Environment values from within a custom code ?

Trying this doesn't work, although variables are set OK in Dev Environment settings

class MyAuthInterceptor extends FFApiInterceptor {
    const varValue = String.fromEnvironment("myVar");
    debugPrint("Debug MyAuthInterceptor " + varValue);
    ...
}

I found nothing related in https://docs.flutterflow.io/testing/dev-environments/

Thanks

What have you tried so far?

I've search within the community and the official doc

I added debug log to troubleshoot

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies