reportError static method
Custom API to report errors. Use this API in ZoneGuarded code blocks
See documentation for more details.
Implementation
static void reportError(Object error, StackTrace stackTrace) {
if (Platform.isAndroid || Platform.isIOS) {
CrashDetector()
.processAndReport(error.toString(), stackTrace, fatal: false);
} else {
log("Platform not yet supported");
}
}