createAction<T> function

ActionCreator createAction<T>(
  1. String type
)

Implementation

ActionCreator createAction<T>(String type) {
  return (payload) => Action<T>(type: type, payload: payload);
}