error static method
Log an error with an optional error object and stackTrace.
Implementation
static void error(String message, {Object? error, StackTrace? stackTrace}) {
if (_enabled) {
developer.log(
'✖ $message',
name: 'SecureBankKit',
error: error,
stackTrace: stackTrace,
);
}
}