withSub method

MetaGetBuilder withSub(
  1. DateTime? ims,
  2. int? limit,
  3. String? userOrTopic
)

Add query parameters to fetch subscriptions

Implementation

MetaGetBuilder withSub(DateTime? ims, int? limit, String? userOrTopic) {
  var opts = {'ims': ims, 'limit': limit};
  if (topic.getType() == 'me') {
    opts['topic'] = userOrTopic;
  } else {
    opts['user'] = userOrTopic;
  }
  what['sub'] = opts;
  return this;
}