我正在使用Google脚本构建一组电子表格。每个电子表格都由10个工作表组成。既然这一切看起来都很有效,我已经添加了一些代码来保护范围,但是这大大增加了脚本的运行时间。该函数被多次调用:在每个工作表上,范围保护函数被调用了10/15次,总共大约有150次。在不调用范围保护的情况下,执行将从76秒开始执行,当保护被调用时,执行将达到189秒。有什么可以改进的吗?
下面是代码:
function protectRange(range, description){
// Protect range, then remove all other users from the list of edi
如果答案是简单的话,我将不胜感激。我是个初学者。
以下是我的完整项目代码:
我的错误是:
E/flutter (17497): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
E/flutter (17497): #0 new Welcome.fromJson (package:getx_5_rest_api/models/product.dart:33:22)
E/flutt
[Running] dart "d:\app1\lib\main.dart"
lib/main.dart: Warning: Interpreting this as package URI, 'package:app1/main.dart'.
lib/main.dart:1:1: Error: The specified language version is too high. The highest supported language version is 2.16.
import 'package:flutter/material.dart
嗨,我正在尝试读取QR代码并将QR代码中的数据发送到我的服务器。但是在运行flutter build ios时,我在启动应用程序时会看到xcode中的错误:
LateInitializationError: Field '_channel@598294394' has not been initialized.
#0 _QRViewState._channel (package:qr_code_scanner/src/qr_code_scanner.dart)
#1 _QRViewState.updateDimensions (package:qr_code