maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult page(
    1. int currentPage,
    2. int perPage,
    3. int total
    )?,
  2. TResult cursor(
    1. String startCursor,
    2. String endCursor,
    3. bool hasNextPage
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(int currentPage, int perPage, int total)? page,
  TResult Function(String startCursor, String endCursor, bool hasNextPage)?
      cursor,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;