operator [] method

Style? operator [](
  1. dynamic index
)

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];
  }
}