Checks if the app was recently restarted (e.g. after crash/kill).
Future<bool> wasRestartedAfterCrash() async { return await _channel.invokeMethod('process.wasRestartedAfterCrash') ?? false; }