when<TResult extends Object?> method

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

Implementation

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