whenOrNull<TResult extends Object?> method

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

Implementation

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