fatal method

void fatal(
  1. String message, {
  2. String? location,
  3. Object? error,
  4. StackTrace? stackTrace,
  5. bool printStack = true,
  6. bool addToCrashReports = true,
  7. bool forceRecordError = false,
  8. String? tag,
})

Logs a fatal message with LogLevel.fatal as debugPrint.

Also tries to send the log with optional error, stackTrace and fatal boolean to your CrashReportsInterface implementation should you have configured one with the Loglytics.setUp method.

Implementation

void fatal(
  String message, {
  String? location,
  Object? error,
  StackTrace? stackTrace,
  bool printStack = true,
  bool addToCrashReports = true,
  bool forceRecordError = false,
  String? tag,
}) =>
    this.error(
      message,
      location: location,
      error: error,
      stackTrace: stackTrace,
      fatal: true,
      printStack: printStack,
      addToCrashReports: addToCrashReports,
      forceRecordError: forceRecordError,
      tag: tag,
    );