whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;