crash method
Causes the app to crash (natively).
This should only be used for testing purposes in cases where you wish to simulate a native crash to view the results on the Firebase Console.
Note: crash reports will not include a stack trace and crash reports are not sent until the next application startup.
Implementation
@override
Future<void> crash() async {
try {
await channel.invokeMethod<void>('Crashlytics#crash');
} on PlatformException catch (e, s) {
convertPlatformException(e, s);
}
}