classList property
Returns class names as a list
Implementation
List<String> get classList =>
attributes?['class']
?.split(' ')
.map((s) => s.trim())
.where((s) => s.isNotEmpty)
.toList() ??
const [];
Returns class names as a list
List<String> get classList =>
attributes?['class']
?.split(' ')
.map((s) => s.trim())
.where((s) => s.isNotEmpty)
.toList() ??
const [];