unsubscribeHoldingHand method
取消订阅握持手状态变化
Implementation
@override
void unsubscribeHoldingHand([UnsubscribeHoldingHandOptions? options]) {
methodChannel
.invokeMethod<void>('unsubscribeHoldingHand')
.then((_) {
_holdingEventSubscription?.cancel();
_holdingEventSubscription = null;
_currentHoldingOptions = null;
_notifySuccess(options, 'unsubscribeHoldingHand:ok');
})
.catchError((Object error, StackTrace stackTrace) {
_notifyFail(
options,
_errorMessage(error, 'unsubscribeHoldingHand:fail'),
);
});
}