getLastRunEndState method

  1. @override
Future<LastRunEndState> getLastRunEndState()
override

Get the exit status (crash or clean exit) of the last time the application was run.

Implementation

@override
Future<LastRunEndState> getLastRunEndState() async {
  return _runCatchingAndReturn<LastRunEndState>(
    'getLastRunEndState',
    () => _platform.getLastRunEndState(),
    defaultValue: LastRunEndState.invalid,
  );
}