dispose method
关闭并销毁消息通道
Implementation
Future<bool> dispose() async {
if (!supportPlatform) return false;
await _streamSubscription?.cancel();
_streamSubscription = null;
_stream = null;
_eventChannel = null;
final bool? state = await channel.invokeMethod<bool>('stopCuriosityEvent');
return state ?? false;
}