destroyEventCallback static method
销毁事件回调。
@returns {Promise
Implementation
static Future<void> destroyEventCallback() async {
await _channel.invokeMethod('destroyEventCallback');
_onEffectsError = null;
_onEffectsFaceDetected = null;
_streamSubscription?.cancel().then((_) {
_streamSubscription = null;
}).catchError((error) {
PlatformException exception = error;
print(exception);
});
}