accessStateView<TStateView extends AFFlexibleStateView> method

TStateView accessStateView<TStateView extends AFFlexibleStateView>()

Implementation

TStateView accessStateView<TStateView extends AFFlexibleStateView>() {
  final sv = stateView;
  if(sv is TStateView) {
    return sv;
  }
  throw AFException("Currently, you can only access the kind of state view that caused the event");
}