startPolling method Null safety

Future<void> startPolling(
  1. [Duration duration = defaultPollingDuration]
)

Starts listening for new incoming messages.

Listen for MailLoadEvent on the eventBus to get notified about new messages.

Implementation

Future<void> startPolling([Duration duration = defaultPollingDuration]) {
  return _incomingMailClient.startPolling(duration);
}