AAListTemplate constructor

AAListTemplate({
  1. required String title,
  2. required List<AAListSection> sections,
  3. List<String>? emptyViewTitleVariants,
  4. String? tabTitle,
  5. String? systemIcon,
  6. String? iconUrl,
  7. String? id,
})

Implementation

AAListTemplate({
  required this.title,
  required this.sections,
  this.emptyViewTitleVariants,
  this.tabTitle,
  this.systemIcon,
  this.iconUrl,
  String? id,
})  : assert(
        !sections.any((section) => section.isSelectable) ||
            sections.length == 1,
        'Android Auto selectable list sections cannot be mixed with other sections.',
      ),
      _elementId = id ?? const Uuid().v4();