hide method

Future<void> hide({
  1. List<Submission>? otherSubmissions,
})

Hide the submission.

If provided, otherSubmissions is a list of other submissions to be hidden.

Implementation

Future<void> hide({List<Submission>? otherSubmissions}) async {
  for (final submissions in _chunk(otherSubmissions, 50)) {
    await reddit.post(apiPath['hide'], {'id': submissions},
        discardResponse: true);
  }
}