error abstract method

Future<void> error({
  1. dynamic error,
  2. StackTrace? stackTrace,
  3. LogEvent? event,
})

Abstract method to log an error.

error - The error object to log. stackTrace - Optional. The stack trace associated with the error. event - Optional. The specific log event associated with the error.

Implementation

Future<void> error({dynamic error, StackTrace? stackTrace, LogEvent? event});