limit function
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),
);
}
Creates an option that sets the limit
DiscoveryOption limit(int limit) {
return (options) => DiscoveryOptions(
ttl: options.ttl,
limit: limit,
other: Map.from(options.other),
);
}