onSetLanguage method

Future<ActionResult> onSetLanguage(
  1. NodeSpec action,
  2. ActionContext context
)

Implementation

Future<ActionResult> onSetLanguage(
    NodeSpec action, ActionContext context) async {
  final result = Solution.setLanguage(action.props["language"]);
  if (result) GlobalBloc.emitState(ReloadAll());
  return ActionResult(result);
}