perform method

void perform(
  1. Future response(),
  2. String actionName, {
  3. bool withLoading = true,
})

Perfoms an action that be dispatched by RequestBloc

requestAction needs to return the data you will need later.

Implementation

void perform(
  Future<dynamic> Function() response,
  String actionName, {
  bool withLoading = true,
}) =>
    add(RequestEvent(response, actionName, withLoading: withLoading));