maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult type(
    1. String customType,
    2. String field,
    3. bool descending
    )?,
  2. TResult document(
    1. String type,
    2. bool descending
    )?,
  3. TResult firstPublicationDate(
    1. bool descending
    )?,
  4. TResult lastPublicationDate(
    1. bool descending
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String customType, String field, bool descending)? type,
  TResult Function(String type, bool descending)? document,
  TResult Function(bool descending)? firstPublicationDate,
  TResult Function(bool descending)? lastPublicationDate,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;