call method

void call(
  1. T? data
)

Implementation

void call(T? data) {
  if (!isClosed) {
    onData?.call(data);
  }
}