dispose method
void
dispose()
销毁 在整个流程没有完成时,调用此方法,将结束将要执行的方法
Implementation
void dispose() async {
_distributeChannel.setMethodCallHandler(null);
shouldTerminate = true;
await BleAPI.instance.dispose();
}
销毁 在整个流程没有完成时,调用此方法,将结束将要执行的方法
void dispose() async {
_distributeChannel.setMethodCallHandler(null);
shouldTerminate = true;
await BleAPI.instance.dispose();
}