envExpand property

bool envExpand
final

.env values can use ${OTHER} (unquoted or in "..."), and a "..." value reads \n, \t, \", \\ and \$. Off: values are read as they are written.

The .env file is read before AppConfig is made (the config reads env values). So also set Env.flags at the top of main(), before any env value is read:

const CoreFlags flags = CoreFlags(envExpand: true);
void main() {
  Env.flags = flags;
  Dox().initialize(AppConfig(..., flags: flags));
}

Implementation

// NEXT MAJOR: make this the default, then remove the flag.
final bool envExpand;