classes property

  1. @override
List<String> get classes
override

CSS classes associated with this element.

Implementation

@override
List<String> get classes {
  final classAttr = attributes['class'];
  if (classAttr != null && classAttr != '') {
    return classAttr.split(' ');
  }
  return <String>[];
}