lastError property

PintoError? get lastError

The last emitted error.

If no error was emitted, null is returned.

Implementation

PintoError? get lastError => hasError ? _errors[_errors.length - 1] : null;