error abstract method

void error(
  1. String message, {
  2. Object? error,
  3. StackTrace? stackTrace,
})

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});