reportCrash abstract method

Future<void> reportCrash(
  1. String? errorName,
  2. String reason,
  3. String stacktrace, {
  4. Platform? platform,
})
inherited

Report an error which contains a stacktrace and will therefor be reported as a real crash. The error includes errorName and reason as well. If errorName is null or empty the crash will not be reported.

Example:

import 'package:dynatrace_flutter_plugin/dynatrace_flutter_plugin.dart';

try {
  Fail();
} catch (exception, stacktrace) {
  await Dynatrace().reportCrash('crashName', 'reason', stacktrace);
}

For more information, see Dynatrace documentation.

Implementation

Future<void> reportCrash(
  String? errorName,
  String reason,
  String stacktrace, {
  Platform? platform,
});