onContinuationResponse method

Future onContinuationResponse(
  1. ImapResponse imapResponse
)

Handles an continuation response from the server

Implementation

Future onContinuationResponse(ImapResponse imapResponse) async {
  final cmd = _currentCommandTask?.command;
  if (cmd != null) {
    final response = cmd.getContinuationResponse(imapResponse);
    if (response != null) {
      await writeText(response);

      return;
    }
  }
  if (!_isInIdleMode) {
    logApp('continuation not handled: [$imapResponse], current cmd: $cmd');
  }
}