onCancel property
void Function()?
onCancel
final
Called when the stream is cancelled.
Implementation
final void Function()? onCancel;
Called when the stream is cancelled.
final void Function()? onCancel;