init method
Implementation
Future<void> init() async {
FlutterError.onError = (FlutterErrorDetails details) async {
await _saveCrash(
error: details.exceptionAsString(),
stackTrace: details.stack!,
crashType: details.exception.runtimeType.toString(),
);
};
}