createMessageCollector method

MessageCollector createMessageCollector(
  1. bool filter(
    1. Message message
    ), {
  2. int? max,
  3. Duration? duration,
})

Implementation

MessageCollector createMessageCollector (bool Function(Message message) filter, { int? max, Duration? duration }) {
  return MessageCollector(filter, max, duration);
}