notifyAppState method

void notifyAppState(
  1. SearchAppState appState
)

Implementation

void notifyAppState(SearchAppState appState) {
  if (!SlangRetailAssistant._validateEnvironment()) {
    return;
  }

  _searchAppState = appState;

  String stringAppState = '';
  String? stringAppStateCondition = '';
  stringAppState = appState.getName();
  stringAppStateCondition = appState.getCondition()?.getName();
  _channel.invokeMapMethod("notifySearchActionCompleted", {
    "appState": stringAppState,
    "appStateCondition": stringAppStateCondition
  });
}