captureException static method

Future<void> captureException(
  1. dynamic exception,
  2. StackTrace stackTrace
)

Implementation

static Future<void> captureException(
    dynamic exception, StackTrace stackTrace) async {
  if (_instance == null) {
    throw Exception(
        'Allstak SDK  not been initialized. Call Allstak.init() first.');
  }
  await _instance!._sendException(exception, stackTrace);
}