captureException static method
Capture an exception
Implementation
static Future<bool> captureException(dynamic error, [StackTrace? stackTrace]) async {
if (!instance._isInitialized) {
print('AllStack not initialized. Call AllStack.init() first');
return false;
}
stackTrace ??= StackTrace.current;
return await instance._captureException(error, stackTrace);
}