getAndRemoveFirstError method
Gets the first error from the error queue, and removes it from the queue.
Implementation
UserException? getAndRemoveFirstError() => //
(_errors.isEmpty) //
? null
: _errors.removeFirst();
Gets the first error from the error queue, and removes it from the queue.
UserException? getAndRemoveFirstError() => //
(_errors.isEmpty) //
? null
: _errors.removeFirst();