limit function

DiscoveryOption limit(
  1. int limit
)

Creates an option that sets the limit

Implementation

DiscoveryOption limit(int limit) {
  return (options) => DiscoveryOptions(
        ttl: options.ttl,
        limit: limit,
        other: Map.from(options.other),
      );
}