callback function to be called after the T event occured
T
late final void Function(Pointer<T> data) cb;