resolve method
Implementation
Token? resolve(String key) {
Token? token = tokens[key];
if (token == null) return null;
try {
return token.resolveAllReferences(tokens);
} catch (e, stacktrace) {
print('Originating exception stacktrace:\n$stacktrace');
throw ResolveTokenException(
'`$key` defined as `${tokens[key]}` - Originating $e',
);
}
}