error abstract method
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});