OnData<T> typedef
OnData<T> =
void Function(T data)
A typedef representing a callback function that accepts data of type T
.
The OnData<T> typedef defines a function signature for callbacks that handle
incoming data of type T
, typically used in asynchronous operations or event
handling scenarios.
Implementation
typedef OnData<T> = void Function(T data);