cancel property

void Function() cancel
final

Function to cancel the ongoing generation. Call this to stop generation early (e.g., user pressed stop button).

Implementation

final void Function() cancel;