unregisterObserve method
Unregister the observation callback with assets changes. 取消注册资源(图库)变化的监听回调
Implementation
void unregisterObserve([ValueChanged<MethodCall>? callback]) {
if (callback == null) {
return;
}
try {
PhotoManager.removeChangeCallback(callback);
PhotoManager.stopChangeNotify();
} catch (e, s) {
FlutterError.presentError(
FlutterErrorDetails(
exception: e,
stack: s,
library: packageName,
silent: true,
),
);
}
}