logError method

void logError({
  1. required String error,
  2. String? text,
  3. StackTrace? stackTrace,
})

Logs an error message using the AppLogs class.

  • error: The error message to be logged.
  • text: An optional additional text message to be logged.
  • stackTrace: An optional StackTrace object to provide the stack trace of the error.

Implementation

void logError({
  required String error,
  String? text,
  StackTrace? stackTrace,
}) {
  AppLogs().logError(
      fileName: runtimeType.toString(),
      error: error,
      stackTrace: stackTrace,
      text: text);
}