run<Request, Response> method

void run<Request, Response>(
  1. BackendAction<Event, Request, Response> backendAction
)

This method finishes registration of Backend's actions

Implementation

void run<Request, Response>(
  BackendAction<Event, Request, Response> backendAction,
) {
  if (_event != null) {
    _backend._actions[_event!] = backendAction;
  } else {
    _checkEventRegistration(_eventType!);
    _backend._actions[_eventType!] = backendAction;
  }
}