isActionOfFutureType<A, P> function

bool isActionOfFutureType<A, P>(
  1. dynamic action
)

A utility function provided for checking if the action passed is of any of the Future Actions created above.

Implementation

bool isActionOfFutureType<A, P>(dynamic action) {
  return action is FutureAction<A, P> ||
      action is FutureSucceededAction<A, P> ||
      action is FuturePendingAction<A> ||
      action is FutureFailedAction<A>;
}