ContentDescription constructor

ContentDescription({
  1. required String id,
  2. required String title,
  3. required String description,
  4. ContentCategory? category,
  5. Iterable<ImageResource>? icons,
  6. String? url,
})

Implementation

factory ContentDescription(
        {required String id,
        required String title,
        required String description,
        ContentCategory? category,
        Iterable<ImageResource>? icons,
        String? url}) =>
    ContentDescription._(
        id: id,
        title: title,
        description: description,
        category: category?.value ?? undefined,
        icons: icons ?? const [],
        url: url ?? undefined);