onReload method

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

Implementation

Future<ActionResult> onReload(NodeSpec action, ActionContext context) async {
  try {
    BlocProvider.of<LocalBloc>(context.buildContext)
        .add(EmitState(ReloadState()));
  } catch (e, stack) {
    log.severe("LocalBloc not found while emitting Reload.", e, stack);
  }
  return ActionResult(true);
}