error abstract method
Logs a standard runtime error or a caught exception that halts a specific operation.
Use this when a business or network flow fails completely but the overall process survives.
Implementation
void error(String message, {Object? error, StackTrace? stackTrace});