selectMailbox method Null safety

Future<Mailbox> selectMailbox(
  1. Mailbox mailbox,
  2. {bool enableCondstore = false,
  3. QResyncParameters? qresync}

Selects the specified mailbox/folder.

Optionally specify if CONDSTORE support should be enabled with enableCondstore. Optionally specify quick resync parameters with qresync.


Future<Mailbox> selectMailbox(Mailbox mailbox,
    {bool enableCondstore = false, QResyncParameters? qresync}) async {
  final box = await _incomingMailClient.selectMailbox(mailbox,
      enableCondstore: enableCondstore, qresync: qresync);
  _selectedMailbox = box;
  return box;