You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import 'dart:io';
import 'package:safe_config/safe_config.dart';
class AppConfig extends Configuration {
AppConfig(String fileName) : super.fromFile(File(fileName));
String password;
}
void main() {
var config = new AppConfig("config.yaml");
print("${config.password}"); // -> null????
}
I receive the unhandled exception:
"Invalid configuration data for 'AppConfig'. Missing required values: 'password'"
If I remove $ from 'password' field this error goes away
It seems that there is no support to escape '$' sign in config files (although yaml package seems to support that). Could you please add that. I think there is already a standard where double '$' ($$) is used to escape $ sign.
I have already tried $$ and \$
Thank you very much
The text was updated successfully, but these errors were encountered:
I have a config file like that:
file "config.yaml":
when it is read from code below:
I receive the unhandled exception:
"Invalid configuration data for 'AppConfig'. Missing required values: 'password'"
If I remove $ from 'password' field this error goes away
It seems that there is no support to escape '$' sign in config files (although yaml package seems to support that). Could you please add that. I think there is already a standard where double '$' ($$) is used to escape $ sign.
I have already tried $$ and \$
Thank you very much
The text was updated successfully, but these errors were encountered: