lastCommandResult property
CommandInvocationResult?
get
lastCommandResult
The latest command invocation result visible from the focused context: from its nearest command registry or any registry above it, the app's included, whichever recorded last.
Implementation
CommandInvocationResult? get lastCommandResult {
_assertNotDisposed('lastCommandResult');
final buildContext = _defaultCommandContext(null);
if (buildContext == null) return null;
return CommandRegistryScope.maybeOf(buildContext)?.latestVisibleResult;
}