dispose method
void
dispose()
Releases all TensorFlow Lite resources held by this model.
Call this when you're done using the face detection model to free up memory. After calling dispose, this instance cannot be used for inference.
Note: Most users should call FaceDetector.dispose instead, which automatically disposes all internal models (detection, mesh, and iris).
Implementation
void dispose() {
if (_disposed) return;
_disposed = true;
_delegate?.delete();
_delegate = null;
_iso?.close();
_compiledModel?.close();
_itp?.close();
}