discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

throwIfCancelled method

void throwIfCancelled()

Throws if this token has been cancelled

Implementation

void throwIfCancelled() {
  if (isCancelled) {
    throw DownloadCancelledException(_cancelReason!, _stackTrace);
  }
}