getAllStories method

Future<Result<StoriesAllStoriesBase>> getAllStories({
  1. required bool next,
  2. required bool hidden,
  3. String? state,
})

Get All Stories.

ID: eeb0d625.

Implementation

Future<Result<StoriesAllStoriesBase>> getAllStories({
  required bool next,
  required bool hidden,
  String? state,
}) async {
  // Preparing the request.
  final request = StoriesGetAllStories(
    next: next,
    hidden: hidden,
    state: state,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<StoriesAllStoriesBase>();
}