dispatcher method

VoidCallback dispatcher(
  1. T event, {
  2. dynamic data,
})

创建事件分发回调

Implementation

VoidCallback dispatcher(T event, {dynamic data}) {
  return () => dispatch(event, data: data);
}