rules method

Future<List<Rule>> rules()

Return the rules for the subreddit.

Implementation

Future<List<Rule>> rules() async => (await _throwOnInvalidSubreddit(
        () async => await reddit.get(apiPath['rules']
            .replaceAll(SubredditRef._subredditRegExp, _name))))
    .cast<Rule>();