operator [] method
Indexer of the class
Implementation
Style? operator [](dynamic index) {
if (index is String) {
if (!_dictStyles.containsKey(index)) {
throw Exception(
'Style with specified name does not exist. Name: $index, value');
}
return _dictStyles[index];
} else {
return _styles[index];
}
}