captureException static method

Future<bool> captureException(
  1. dynamic error, [
  2. StackTrace? stackTrace
])

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