rawClass property

  1. @Input('ngClass')
set rawClass (Object? stringOrIterableOrMap)

Implementation

@Input('ngClass')
set rawClass(Object? stringOrIterableOrMap) {
  _cleanupClasses(_rawClass);
  if (stringOrIterableOrMap is String) {
    stringOrIterableOrMap = stringOrIterableOrMap.split(' ');
  }
  _rawClass = stringOrIterableOrMap;
  _iterableDiffer = null;
  _keyValueDiffer = null;
  if (stringOrIterableOrMap != null) {
    if (stringOrIterableOrMap is Iterable<Object?>) {
      _iterableDiffer = DefaultIterableDiffer();
    } else {
      _keyValueDiffer = DefaultKeyValueDiffer();
    }
  }
}