error property
Optional object representing the error or exception that occurred.
This is useful for capturing caught errors along with the log message.
Example:
error: InvalidArgumentException('User ID cannot be null')
Implementation
final Object? error;