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