Files
packages.dart/deprecated/widget_gen/lib/src/template/rows.dart
T
2026-01-15 14:38:46 -08:00

13 lines
300 B
Dart

class Rows<T> {
final List<T> _templates = [];
void add(T template) => _templates.add(template);
bool get isEmpty => _templates.isEmpty;
List get templates => _templates;
@override
String toString() =>
_templates.map((t) => t.toString()).where((s) => s.isNotEmpty).join('\n');
}