className property

String get className

Implementation

String get className => _classList.join(_ONE_SPACE);
set className (String className)

Implementation

set className(String className) {
  List<String> classList = className.split(classNameSplitRegExp);
  final checkKeys = (_classList + classList).where((key) => !_classList.contains(key) || !classList.contains(key));
  final isNeedRecalculate = _checkRecalculateStyle(List.from(checkKeys));
  _classList.clear();
  if (classList.isNotEmpty) {
    _classList.addAll(classList);
  }
  recalculateStyle(rebuildNested: isNeedRecalculate);
}