创建事件分发回调
VoidCallback dispatcher(T event, {dynamic data}) { return () => dispatch(event, data: data); }