I have this code:
class Dev {
static final config = const {
'endpoints': const {
'signIn': '/v1/auth/sign_in',
},
'apiBaseUrl': 'localhost:3000'
};
}
Im trying to access to the signIn property in the config variable, when i do config['endpoints'] it access the property correctly, but when i try
var signInEndpoint = config['endpoints']['signIn'];
It doesn't work, same when i try
var endpoints = config['endpoints'];
var signInEndpoint = endpoints['signIn'];
How can i correctly access signIn property in variable?, thanks in advance.