Chapter constructor

const Chapter({
  1. required String id,
  2. required String title,
  3. @Default('') String description,
  4. required List<Ability> abilities,
})

Implementation

const factory Chapter({
  required String id,
  required String title,
  @Default('') String description,
  required List<Ability> abilities,
}) = _Chapter;