discontinuedPackage flutter_gemma has been discontinued and replaced by flutter_edge_ai.

isCancel static method

bool isCancel(
  1. Object error
)

Checks if an exception is a cancellation exception

Implementation

static bool isCancel(Object error) {
  return error is DownloadCancelledException;
}