AuthorQueryResult constructor Null safety

AuthorQueryResult(
  1. {required int total,
  2. @Default([]) List<String> authors}
)

Implementation

factory AuthorQueryResult({
  /// The number of results for this query
  required int total,

  /// The list of the authors matching the query
  @Default([]) List<String> authors,
}) = _AuthorQueryResult;