perform method
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));