dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.21k stars 1.57k forks source link

Null safety errors despite not using null saftey yet #45417

Closed jimmyff closed 3 years ago

jimmyff commented 3 years ago

I've just started a new project using package: firebase-functions-interop

I try and run pub run build_runner build --output=build and I get so many null safety errors. I understood null soundness was an opt in feature? I haven't opted in yet.

I've attempted to run pub run --no-sound-null-safety build_runner build --output=build instead and I've also tried adding // @dart=2.9 to my entrypoint file but I still seem to get masses of errors. I've included error logs below

My development enviroment feels a bit of a mess right now, between package dependency hell and crazy amounts of null saftey errors. Am I missing something, do I need to take the plunge and try null soundess to make all these errors go away? I need to resolve these issues so I can focus on my projects again rather than constnatly trying to make dart work. I use dart on web client, flutter & server so need my packages to work in all these scenarios.

Thanks

Build logs ``` [INFO] Generating build script... [INFO] Generating build script completed, took 256ms [INFO] Creating build script snapshot...... [INFO] Creating build script snapshot... completed, took 7.8s [INFO] Initializing inputs [INFO] Building new asset graph... [INFO] Building new asset graph completed, took 796ms [INFO] Checking for unexpected pre-existing outputs.... [INFO] Checking for unexpected pre-existing outputs. completed, took 1ms [INFO] Running build... [INFO] 1.1s elapsed, 76/86 actions completed. [INFO] 2.1s elapsed, 169/188 actions completed. [INFO] 3.1s elapsed, 294/308 actions completed. [INFO] 4.2s elapsed, 318/322 actions completed. [INFO] 5.3s elapsed, 375/379 actions completed. [INFO] 6.4s elapsed, 495/504 actions completed. [INFO] 7.5s elapsed, 550/554 actions completed. [INFO] 8.6s elapsed, 667/671 actions completed. [INFO] 9.7s elapsed, 724/726 actions completed. [INFO] 10.8s elapsed, 773/775 actions completed. [INFO] 11.9s elapsed, 811/895 actions completed. [SEVERE] build_node_compilers:ddc on package:pedantic/pedantic.ddc_node.module: Error compiling dartdevc module:pedantic|lib/pedantic.ddc_node.js packages/pedantic/pedantic.dart:23:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void unawaited(Future? future) {} ^ [SEVERE] build_node_compilers:ddc on package:collection/src/utils.ddc_node.module: Error compiling dartdevc module:collection|lib/src/utils.ddc_node.js packages/collection/src/utils.dart:13:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int defaultCompare(Object? value1, Object? value2) => ^ packages/collection/src/utils.dart:13:42: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int defaultCompare(Object? value1, Object? value2) => ^ packages/collection/src/utils.dart:14:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. (value1 as Comparable).compareTo(value2); ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read pedantic|lib/pedantic.ddc_node.js, check your console or the `.dart_tool/build/generated/pedantic/lib/pedantic.ddc_node.js.errors` log file. [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/utils.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/utils.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:collection/src/iterable_zip.ddc_node.module: Error compiling dartdevc module:collection|lib/src/iterable_zip.ddc_node.js packages/collection/src/iterable_zip.dart:32:10: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List? _current; ^ [SEVERE] build_node_compilers:ddc on package:collection/src/comparators.ddc_node.module: Error compiling dartdevc module:collection|lib/src/comparators.ddc_node.js packages/collection/src/equality.dart:30:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o); ^ packages/collection/src/equality.dart:67:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) { ^ packages/collection/src/equality.dart:87:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Object? e1, Object? e2) => e1 == e2; ^ packages/collection/src/equality.dart:87:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Object? e1, Object? e2) => e1 == e2; ^ packages/collection/src/equality.dart:89:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int hash(Object? e) => e.hashCode; ^ packages/collection/src/equality.dart:91:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => true; ^ packages/collection/src/equality.dart:102:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => true; ^ packages/collection/src/equality.dart:113:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Equality _elementEquality; ^ packages/collection/src/equality.dart:119:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Iterable? elements1, Iterable? elements2) { ^ packages/collection/src/equality.dart:119:50: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Iterable? elements1, Iterable? elements2) { ^ packages/collection/src/equality.dart:133:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int hash(Iterable? elements) { ^ packages/collection/src/equality.dart:150:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => o is Iterable; ^ packages/collection/src/equality.dart:171:22: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(List? list1, List? list2) { ^ packages/collection/src/equality.dart:171:38: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(List? list1, List? list2) { ^ packages/collection/src/equality.dart:183:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int hash(List? list) { ^ packages/collection/src/equality.dart:202:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => o is List; ^ packages/collection/src/equality.dart:205:59: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. abstract class _UnorderedEquality?> ^ packages/collection/src/equality.dart:254:77: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. class UnorderedIterableEquality extends _UnorderedEquality?> { ^ packages/collection/src/equality.dart:260:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => o is Iterable; ^ packages/collection/src/equality.dart:275:58: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. class SetEquality extends _UnorderedEquality?> { ^ packages/collection/src/equality.dart:281:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => o is Set; ^ packages/collection/src/equality.dart:325:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Map? map1, Map? map2) { ^ packages/collection/src/equality.dart:325:41: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool equals(Map? map1, Map? map2) { ^ packages/collection/src/equality.dart:346:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int hash(Map? map) { ^ packages/collection/src/equality.dart:361:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => o is Map; ^ packages/collection/src/equality.dart:401:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) { ^ packages/collection/src/equality.dart:462:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int hash(Object? o) { ^ packages/collection/src/equality.dart:475:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? o) => ^ packages/collection/src/equality.dart:493:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isValidKey(Object? object) => object is String; ^ [SEVERE] build_node_compilers:ddc on package:typed_data/src/typed_buffer.ddc_node.module: Error compiling dartdevc module:typed_data|lib/src/typed_buffer.ddc_node.js packages/typed_data/src/typed_buffer.dart:85:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void addAll(Iterable values, [int start = 0, int? end]) { ^ packages/typed_data/src/typed_buffer.dart:104:68: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void insertAll(int index, Iterable values, [int start = 0, int? end]) { ^ packages/typed_data/src/typed_buffer.dart:179:55: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _addAll(Iterable values, [int start = 0, int? end]) { ^ packages/typed_data/src/typed_buffer.dart:252:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List _createBiggerBuffer(int? requiredCapacity) { ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/iterable_zip.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/iterable_zip.ddc_node.js.errors` log file. [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/comparators.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/comparators.ddc_node.js.errors` log file. [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read typed_data|lib/src/typed_buffer.ddc_node.js, check your console or the `.dart_tool/build/generated/typed_data/lib/src/typed_buffer.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:path/path.ddc_node.module: Error compiling dartdevc module:path|lib/path.ddc_node.js packages/path/path.dart:100:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? _currentUriBase; ^ packages/path/path.dart:106:7: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? _current; ^ packages/path/path.dart:120:16: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [String? part2, ^ packages/path/path.dart:121:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part3, ^ packages/path/path.dart:122:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part4, ^ packages/path/path.dart:123:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part5, ^ packages/path/path.dart:124:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part6, ^ packages/path/path.dart:125:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part7]) => ^ packages/path/path.dart:258:16: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [String? part2, ^ packages/path/path.dart:259:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part3, ^ packages/path/path.dart:260:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part4, ^ packages/path/path.dart:261:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part5, ^ packages/path/path.dart:262:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part6, ^ packages/path/path.dart:263:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part7, ^ packages/path/path.dart:264:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part8]) => ^ packages/path/path.dart:358:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String relative(String path, {String? from}) => ^ packages/path/src/style/windows.dart:79:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRelativeRoot(String path) { ^ packages/path/src/style/url.dart:82:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRelativeRoot(String path) => isRootRelative(path) ? '/' : null; ^ packages/path/src/parsed_path.dart:16:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? root; ^ packages/path/src/internal_style.dart:46:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRoot(String path) { ^ packages/path/src/path_set.dart:10:42: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. class PathSet extends IterableBase implements Set { ^ packages/path/src/path_set.dart:10:66: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. class PathSet extends IterableBase implements Set { ^ packages/path/src/path_set.dart:12:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Set _inner; ^ packages/path/src/path_set.dart:18:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. PathSet({p.Context? context}) : _inner = _create(context); ^ packages/path/src/path_set.dart:26:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. PathSet.of(Iterable other, {p.Context? context}) ^ packages/path/src/path_set.dart:30:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. static Set _create(p.Context? context) { ^ packages/path/src/path_set.dart:30:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. static Set _create(p.Context? context) { ^ packages/path/src/path_set.dart:47:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Iterator get iterator => _inner.iterator; ^ packages/path/src/path_set.dart:53:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool add(String? value) => _inner.add(value); ^ packages/path/src/path_set.dart:56:30: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void addAll(Iterable elements) => _inner.addAll(elements); ^ packages/path/src/path_set.dart:65:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _inner.contains(element); ^ packages/path/src/path_set.dart:68:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsAll(Iterable other) => _inner.containsAll(other); ^ packages/path/src/path_set.dart:71:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => _inner.difference(other); ^ packages/path/src/path_set.dart:71:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => _inner.difference(other); ^ packages/path/src/path_set.dart:74:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => _inner.intersection(other); ^ packages/path/src/path_set.dart:74:39: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => _inner.intersection(other); ^ packages/path/src/path_set.dart:77:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? lookup(Object? element) => _inner.lookup(element); ^ packages/path/src/path_set.dart:77:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? lookup(Object? element) => _inner.lookup(element); ^ packages/path/src/path_set.dart:80:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? value) => _inner.remove(value); ^ packages/path/src/path_set.dart:83:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void removeAll(Iterable elements) => _inner.removeAll(elements); ^ packages/path/src/path_set.dart:86:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void removeWhere(bool Function(String?) test) => _inner.removeWhere(test); ^ packages/path/src/path_set.dart:89:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void retainAll(Iterable elements) => _inner.retainAll(elements); ^ packages/path/src/path_set.dart:92:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void retainWhere(bool Function(String?) test) => _inner.retainWhere(test); ^ packages/path/src/path_set.dart:95:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set union(Set other) => _inner.union(other); ^ packages/path/src/path_set.dart:95:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set union(Set other) => _inner.union(other); ^ packages/path/src/path_set.dart:98:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set toSet() => _inner.toSet(); ^ packages/path/src/style.dart:66:10: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Pattern? get relativeRootPattern; ^ packages/path/src/style.dart:69:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRoot(String path); ^ packages/path/src/style.dart:72:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRelativeRoot(String path); ^ packages/path/src/path_map.dart:10:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. class PathMap extends MapView { ^ packages/path/src/path_map.dart:15:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. PathMap({p.Context? context}) : super(_create(context)); ^ packages/path/src/path_map.dart:23:46: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. PathMap.of(Map other, {p.Context? context}) ^ packages/path/src/path_map.dart:27:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. static Map _create(p.Context? context) { ^ packages/path/src/path_map.dart:27:46: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. static Map _create(p.Context? context) { ^ packages/path/src/context.dart:28:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. factory Context({Style? style, String? current}) { ^ packages/path/src/context.dart:28:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. factory Context({Style? style, String? current}) { ^ packages/path/src/context.dart:59:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final String? _current; ^ packages/path/src/context.dart:78:14: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [String? part2, ^ packages/path/src/context.dart:79:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part3, ^ packages/path/src/context.dart:80:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part4, ^ packages/path/src/context.dart:81:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part5, ^ packages/path/src/context.dart:82:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part6, ^ packages/path/src/context.dart:83:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part7]) { ^ packages/path/src/context.dart:225:14: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [String? part2, ^ packages/path/src/context.dart:226:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part3, ^ packages/path/src/context.dart:227:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part4, ^ packages/path/src/context.dart:228:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part5, ^ packages/path/src/context.dart:229:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part6, ^ packages/path/src/context.dart:230:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part7, ^ packages/path/src/context.dart:231:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? part8]) { ^ packages/path/src/context.dart:467:39: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String relative(String path, {String? from}) { ^ packages/path/src/context.dart:897:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? _hashFast(String path) { ^ packages/path/src/context.dart:1084:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _validateArgList(String method, List args) { ^ packages/path/src/style/posix.dart:50:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? getRelativeRoot(String path) => null; ^ packages/path/path.dart:75:42: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (_current != null) return _current!; ^ packages/path/path.dart:81:46: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (uri == _currentUriBase) return _current!; ^ packages/path/path.dart:94:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return _current!; ^ packages/path/src/style/windows.dart:109:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (parsed.root!.startsWith(r'\\')) { ^ packages/path/src/style/windows.dart:114:36: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final rootParts = parsed.root!.split('\\').where((part) => part != ''); ^ packages/path/src/style/windows.dart:139:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. .insert(0, parsed.root!.replaceAll('/', '').replaceAll('\\', '')); ^ packages/path/src/parsed_path.dart:134:70: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (!isAbsolute || newParts.isEmpty || !style.needsSeparator(root!)) { ^ packages/path/src/parsed_path.dart:140:36: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (canonicalize) root = root!.toLowerCase(); ^ packages/path/src/parsed_path.dart:141:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. root = root!.replaceAll('/', '\\'); ^ packages/path/src/parsed_path.dart:194:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. parts.cast().lastWhere((p) => p != '', orElse: () => null); ^ packages/path/src/path_set.dart:36:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return context!.equals(path1, path2); ^ packages/path/src/path_set.dart:38:55: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. hashCode: (path) => path == null ? 0 : context!.hash(path), ^ packages/path/src/path_map.dart:33:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return context!.equals(path1, path2); ^ packages/path/src/path_map.dart:35:55: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. hashCode: (path) => path == null ? 0 : context!.hash(path), ^ packages/path/src/context.dart:232:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final parts = [ ^ packages/path/src/context.dart:273:45: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (style.needsSeparator(parsed.root!)) { ^ packages/path/src/context.dart:328:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (parsed.root != null) parsed.parts.insert(0, parsed.root!); ^ packages/path/src/context.dart:373:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? previousPrevious; ^ packages/path/src/context.dart:374:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? previous; ^ packages/path/src/context.dart:503:46: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. !style.pathsEqual(fromParsed.root!, pathParsed.root!))) { ^ packages/path/src/context.dart:503:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. !style.pathsEqual(fromParsed.root!, pathParsed.root!))) { ^ packages/path/src/context.dart:650:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? lastParentSeparator; ^ packages/path/src/context.dart:890:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return _hashFast(parsed.toString())!; ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read path|lib/path.ddc_node.js, check your console or the `.dart_tool/build/generated/path/lib/path.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:collection/src/algorithms.ddc_node.module: Error compiling dartdevc module:collection|lib/src/algorithms.ddc_node.js packages/collection/src/algorithms.dart:22:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int Function(E, E)? compare}) { ^ packages/collection/src/algorithms.dart:38:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:68:67: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int lowerBound(List sortedList, E value, {int Function(E, E)? compare}) { ^ packages/collection/src/algorithms.dart:85:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:111:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffle(List elements, [int start = 0, int? end, Random? random]) { ^ packages/collection/src/algorithms.dart:111:61: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffle(List elements, [int start = 0, int? end, Random? random]) { ^ packages/collection/src/algorithms.dart:125:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void reverse(List elements, [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:155:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int Function(E, E)? compare, int start = 0, int? end}) { ^ packages/collection/src/algorithms.dart:155:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int Function(E, E)? compare, int start = 0, int? end}) { ^ packages/collection/src/algorithms.dart:185:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:209:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int start = 0, int? end, int Function(E, E)? compare}) { ^ packages/collection/src/algorithms.dart:209:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int start = 0, int? end, int Function(E, E)? compare}) { ^ packages/collection/src/algorithms.dart:249:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:404:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/algorithms.dart:418:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ [SEVERE] build_node_compilers:ddc on package:collection/src/priority_queue.ddc_node.module: Error compiling dartdevc module:collection|lib/src/priority_queue.ddc_node.js packages/collection/src/priority_queue.dart:36:44: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. factory PriorityQueue([int Function(E, E)? comparison]) = ^ packages/collection/src/priority_queue.dart:183:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List _queue = List.filled(_INITIAL_CAPACITY, null); ^ packages/collection/src/priority_queue.dart:204:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. HeapPriorityQueue([int Function(E, E)? comparison]) ^ packages/collection/src/priority_queue.dart:472:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? _current; ^ packages/collection/src/priority_queue.dart:183:27: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List _queue = List.filled(_INITIAL_CAPACITY, null); ^ packages/collection/src/priority_queue.dart:455:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. var newQueue = List.filled(newCapacity, null); ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/priority_queue.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/priority_queue.ddc_node.js.errors` log file. [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/algorithms.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/algorithms.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:collection/src/canonicalized_map.ddc_node.module: Error compiling dartdevc module:collection|lib/src/canonicalized_map.ddc_node.js packages/collection/src/functions.dart:16:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {K2 Function(K1, V1)? key, V2 Function(K1, V1)? value}) { ^ packages/collection/src/functions.dart:16:51: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {K2 Function(K1, V1)? key, V2 Function(K1, V1)? value}) { ^ packages/collection/src/functions.dart:33:22: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {V Function(V, V)? value}) { ^ packages/collection/src/functions.dart:65:2: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. S? minBy(Iterable values, T Function(S) orderBy, ^ packages/collection/src/functions.dart:66:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int Function(T, T)? compare}) { ^ packages/collection/src/functions.dart:89:2: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. S? maxBy(Iterable values, T Function(S?) orderBy, ^ packages/collection/src/functions.dart:89:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. S? maxBy(Iterable values, T Function(S?) orderBy, ^ packages/collection/src/functions.dart:90:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int? Function(T, T)? compare}) { ^ packages/collection/src/functions.dart:90:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {int? Function(T, T)? compare}) { ^ packages/collection/src/combined_wrappers/combined_iterator.dart:13:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Iterator>? _iterators; ^ packages/collection/src/iterable_extensions.dart:31:36: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List sample(int count, [Random? random]) { ^ packages/collection/src/iterable_extensions.dart:244:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? firstWhereOrNull(bool Function(T element) test) { ^ packages/collection/src/iterable_extensions.dart:254:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? firstWhereIndexedOrNull(bool Function(int index, T element) test) { ^ packages/collection/src/iterable_extensions.dart:263:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? get firstOrNull { ^ packages/collection/src/iterable_extensions.dart:270:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? lastWhereOrNull(bool Function(T element) test) { ^ packages/collection/src/iterable_extensions.dart:281:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? lastWhereIndexedOrNull(bool Function(int index, T element) test) { ^ packages/collection/src/iterable_extensions.dart:291:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? get lastOrNull { ^ packages/collection/src/iterable_extensions.dart:304:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? singleWhereOrNull(bool Function(T element) test) { ^ packages/collection/src/iterable_extensions.dart:324:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? singleWhereIndexedOrNull(bool Function(int index, T element) test) { ^ packages/collection/src/iterable_extensions.dart:345:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? get singleOrNull { ^ packages/collection/src/iterable_extensions.dart:370:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. K Function(T element) keyOf, G Function(G? previous, T element) combine) { ^ packages/collection/src/iterable_extensions.dart:555:68: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. extension IterableNullableExtension on Iterable { ^ packages/collection/src/iterable_extensions.dart:680:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? get minOrNull { ^ packages/collection/src/iterable_extensions.dart:714:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? get maxOrNull { ^ packages/collection/src/iterable_extensions.dart:751:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List sorted([Comparator? compare]) => [...this]..sort(compare); ^ packages/collection/src/iterable_extensions.dart:757:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isSorted([Comparator? compare]) { ^ packages/collection/src/list_extensions.dart:38:30: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) => ^ packages/collection/src/list_extensions.dart:53:70: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E element, K Function(E element) keyOf, [int start = 0, int? end]) => ^ packages/collection/src/list_extensions.dart:87:30: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) => ^ packages/collection/src/list_extensions.dart:106:30: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) => ^ packages/collection/src/list_extensions.dart:185:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/list_extensions.dart:193:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. [int start = 0, int? end]) { ^ packages/collection/src/list_extensions.dart:198:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffleRange(int start, int end, [Random? random]) { ^ packages/collection/src/list_extensions.dart:235:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. ListSlice slice(int start, [int? end]) { ^ packages/collection/src/list_extensions.dart:267:50: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int binarySearch(E element, [int Function(E, E)? compare]) => ^ packages/collection/src/list_extensions.dart:281:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int lowerBound(E element, [int Function(E, E)? compare]) => ^ packages/collection/src/list_extensions.dart:289:61: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void sortRange(int start, int end, [int Function(E a, E b)? compare]) { ^ packages/collection/src/list_extensions.dart:369:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. ListSlice slice(int start, [int? end]) { ^ packages/collection/src/list_extensions.dart:375:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffle([Random? random]) { ^ packages/collection/src/list_extensions.dart:383:36: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void sort([int Function(E a, E b)? compare]) { ^ packages/collection/src/list_extensions.dart:402:48: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffleRange(int start, int end, [Random? random]) { ^ packages/collection/src/list_extensions.dart:444:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? element) { ^ packages/collection/src/combined_wrappers/combined_map.dart:32:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) { ^ packages/collection/src/combined_wrappers/combined_map.dart:32:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) { ^ packages/collection/src/combined_wrappers/combined_map.dart:78:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _iterable.contains(element); ^ packages/collection/src/combined_wrappers/combined_list.dart:66:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? element) { ^ packages/collection/src/queue_list.dart:30:9: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List _table; ^ packages/collection/src/queue_list.dart:38:17: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. QueueList([int? initialCapacity]) ^ packages/collection/src/queue_list.dart:67:41: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. static int _computeInitialCapacity(int? initialCapacity) { ^ packages/collection/src/queue_list.dart:248:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int _writeToList(List target) { ^ packages/collection/src/canonicalized_map.dart:16:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final bool Function(K)? _isValidKeyFn; ^ packages/collection/src/canonicalized_map.dart:29:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool Function(K key)? isValidKey}) ^ packages/collection/src/canonicalized_map.dart:43:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool Function(K key)? isValidKey}) ^ packages/collection/src/canonicalized_map.dart:50:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) { ^ packages/collection/src/canonicalized_map.dart:50:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) { ^ packages/collection/src/canonicalized_map.dart:80:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsKey(Object? key) { ^ packages/collection/src/canonicalized_map.dart:86:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsValue(Object? value) => ^ packages/collection/src/canonicalized_map.dart:122:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? remove(Object? key) { ^ packages/collection/src/canonicalized_map.dart:122:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? remove(Object? key) { ^ packages/collection/src/canonicalized_map.dart:136:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V update(K key, V Function(V) update, {V Function()? ifAbsent}) => ^ packages/collection/src/canonicalized_map.dart:162:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool _isValidKey(Object? key) => ^ packages/collection/src/combined_wrappers/combined_iterable.dart:31:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _iterables.any((i) => i.contains(element)); ^ packages/collection/src/functions.dart:69:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. S? minValue; ^ packages/collection/src/functions.dart:70:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? minOrderBy; ^ packages/collection/src/functions.dart:93:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. S? maxValue; ^ packages/collection/src/functions.dart:94:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? maxOrderBy; ^ packages/collection/src/functions.dart:97:66: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (maxOrderBy == null || compare(elementOrderBy, maxOrderBy)! > 0) { ^ packages/collection/src/functions.dart:132:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (result[vertex2]!.contains(vertex1) && ^ packages/collection/src/functions.dart:133:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. result[vertex1]!.contains(vertex3)) { ^ packages/collection/src/functions.dart:134:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. result[vertex2]!.add(vertex3); ^ packages/collection/src/functions.dart:160:17: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. var stack = []; ^ packages/collection/src/functions.dart:177:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. for (var successor in graph[vertex]!) { ^ packages/collection/src/functions.dart:180:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. lowLinks[vertex] = math.min(lowLinks[vertex]!, lowLinks[successor]!); ^ packages/collection/src/functions.dart:180:75: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. lowLinks[vertex] = math.min(lowLinks[vertex]!, lowLinks[successor]!); ^ packages/collection/src/functions.dart:182:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. lowLinks[vertex] = math.min(lowLinks[vertex]!, lowLinks[successor]!); ^ packages/collection/src/functions.dart:182:75: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. lowLinks[vertex] = math.min(lowLinks[vertex]!, lowLinks[successor]!); ^ packages/collection/src/functions.dart:188:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? neighbor; ^ packages/collection/src/iterable_extensions.dart:271:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? result; ^ packages/collection/src/iterable_extensions.dart:282:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? result; ^ packages/collection/src/iterable_extensions.dart:305:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? result; ^ packages/collection/src/iterable_extensions.dart:325:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. T? result; ^ packages/collection/src/iterable_extensions.dart:495:12: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List? chunk; ^ packages/collection/src/queue_list.dart:44:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _table = List.filled(initialCapacity, null), ^ packages/collection/src/queue_list.dart:239:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. var newTable = List.filled(_table.length * 2, null); ^ packages/collection/src/queue_list.dart:270:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. var newTable = List.filled(newCapacity, null); ^ packages/collection/src/canonicalized_map.dart:163:60: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. (key is K) && (_isValidKeyFn == null || _isValidKeyFn!(key)); ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/src/canonicalized_map.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/src/canonicalized_map.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:collection/collection.ddc_node.module: Error compiling dartdevc module:collection|lib/collection.ddc_node.js packages/collection/src/empty_unmodifiable_set.dart:24:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => false; ^ packages/collection/src/empty_unmodifiable_set.dart:26:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsAll(Iterable other) => other.isEmpty; ^ packages/collection/src/empty_unmodifiable_set.dart:30:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) => null; ^ packages/collection/src/empty_unmodifiable_set.dart:30:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) => null; ^ packages/collection/src/empty_unmodifiable_set.dart:35:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E singleWhere(bool Function(E) test, {E Function()? orElse}) => ^ packages/collection/src/empty_unmodifiable_set.dart:44:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => {}; ^ packages/collection/src/empty_unmodifiable_set.dart:46:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => {}; ^ packages/collection/src/unmodifiable_wrappers.dart:61:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? value) => _throw(); ^ packages/collection/src/unmodifiable_wrappers.dart:137:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? value) => _throw(); ^ packages/collection/src/unmodifiable_wrappers.dart:190:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V remove(Object? key) => _throw(); ^ packages/collection/src/wrappers.dart:26:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _base.contains(element); ^ packages/collection/src/wrappers.dart:41:52: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E firstWhere(bool Function(E) test, {E Function()? orElse}) => ^ packages/collection/src/wrappers.dart:70:51: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E lastWhere(bool Function(E) test, {E Function()? orElse}) => ^ packages/collection/src/wrappers.dart:89:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E singleWhere(bool Function(E) test, {E Function()? orElse}) { ^ packages/collection/src/wrappers.dart:204:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void fillRange(int start, int end, [E? fillValue]) { ^ packages/collection/src/wrappers.dart:241:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int lastIndexOf(E element, [int? start]) => _base.lastIndexOf(element, start); ^ packages/collection/src/wrappers.dart:244:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int lastIndexWhere(bool Function(E) test, [int? start]) => ^ packages/collection/src/wrappers.dart:253:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? value) => _base.remove(value); ^ packages/collection/src/wrappers.dart:299:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void shuffle([math.Random? random]) { ^ packages/collection/src/wrappers.dart:304:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void sort([int Function(E, E)? compare]) { ^ packages/collection/src/wrappers.dart:309:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List sublist(int start, [int? end]) => _base.sublist(start, end); ^ packages/collection/src/wrappers.dart:353:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsAll(Iterable other) => _base.containsAll(other); ^ packages/collection/src/wrappers.dart:356:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => _base.difference(other); ^ packages/collection/src/wrappers.dart:359:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => _base.intersection(other); ^ packages/collection/src/wrappers.dart:362:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) => _base.lookup(element); ^ packages/collection/src/wrappers.dart:362:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) => _base.lookup(element); ^ packages/collection/src/wrappers.dart:365:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? value) => _base.remove(value); ^ packages/collection/src/wrappers.dart:368:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void removeAll(Iterable elements) { ^ packages/collection/src/wrappers.dart:378:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void retainAll(Iterable elements) { ^ packages/collection/src/wrappers.dart:453:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? object) => _base.remove(object); ^ packages/collection/src/wrappers.dart:501:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) => _base[key]; ^ packages/collection/src/wrappers.dart:501:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? operator [](Object? key) => _base[key]; ^ packages/collection/src/wrappers.dart:527:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsKey(Object? key) => _base.containsKey(key); ^ packages/collection/src/wrappers.dart:530:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsValue(Object? value) => _base.containsValue(value); ^ packages/collection/src/wrappers.dart:561:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? remove(Object? key) => _base.remove(key); ^ packages/collection/src/wrappers.dart:561:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? remove(Object? key) => _base.remove(key); ^ packages/collection/src/wrappers.dart:576:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V update(K key, V Function(V) update, {V Function()? ifAbsent}) => ^ packages/collection/src/wrappers.dart:610:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _baseMap.containsKey(element); ^ packages/collection/src/wrappers.dart:625:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsAll(Iterable other) => other.every(contains); ^ packages/collection/src/wrappers.dart:635:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => ^ packages/collection/src/wrappers.dart:646:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => where(other.contains).toSet(); ^ packages/collection/src/wrappers.dart:651:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E lookup(Object? element) => ^ packages/collection/src/wrappers.dart:713:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) { ^ packages/collection/src/wrappers.dart:750:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool containsAll(Iterable other) => other.every(contains); ^ packages/collection/src/wrappers.dart:760:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set difference(Set other) => ^ packages/collection/src/wrappers.dart:771:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Set intersection(Set other) => where(other.contains).toSet(); ^ packages/collection/src/wrappers.dart:774:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? lookup(Object? element) { ^ packages/collection/src/wrappers.dart:774:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. V? lookup(Object? element) { ^ packages/collection/src/wrappers.dart:782:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool remove(Object? element) { ^ packages/collection/src/wrappers.dart:792:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void removeAll(Iterable elements) => elements.forEach(remove); ^ packages/collection/src/wrappers.dart:804:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void retainAll(Iterable elements) { ^ packages/collection/src/union_set.dart:67:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool contains(Object? element) => _sets.any((set) => set.contains(element)); ^ packages/collection/src/union_set.dart:70:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) { ^ packages/collection/src/union_set.dart:70:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. E? lookup(Object? element) { ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read collection|lib/collection.ddc_node.js, check your console or the `.dart_tool/build/generated/collection/lib/collection.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:source_span/source_span.ddc_node.module: Error compiling dartdevc module:source_span|lib/source_span.ddc_node.js packages/source_span/src/span.dart:30:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? get sourceUrl; ^ packages/source_span/src/span.dart:142:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) { ^ packages/source_span/src/span.dart:142:56: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) { ^ packages/source_span/src/span.dart:177:38: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) => ^ packages/source_span/src/span.dart:177:60: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) => ^ packages/source_span/src/span.dart:186:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceSpan subspan(int start, [int? end]) { ^ packages/source_span/src/highlighter.dart:25:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final String? _primaryColor; ^ packages/source_span/src/highlighter.dart:29:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final String? _secondaryColor; ^ packages/source_span/src/highlighter.dart:85:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) ^ packages/source_span/src/highlighter.dart:85:56: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {bool color = false, String? primaryColor, String? secondaryColor}) ^ packages/source_span/src/highlighter.dart:262:27: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _writeFileStart(Uri? url) { ^ packages/source_span/src/highlighter.dart:281:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _Line line, List<_Highlight?> highlightsByColumn, ^ packages/source_span/src/highlighter.dart:282:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {_Highlight? current}) { ^ packages/source_span/src/highlighter.dart:347:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {required String? color}) { ^^^^^^^^ packages/source_span/src/highlighter.dart:347:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. {required String? color}) { ^ packages/source_span/src/highlighter.dart:359:56: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _Line line, _Highlight highlight, List<_Highlight?> highlightsByColumn) { ^ packages/source_span/src/highlighter.dart:442:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _writeLabel(String? label) { ^ packages/source_span/src/highlighter.dart:463:26: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _writeSidebar({int? line, String? text, String? end}) { ^ packages/source_span/src/highlighter.dart:463:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _writeSidebar({int? line, String? text, String? end}) { ^ packages/source_span/src/highlighter.dart:463:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _writeSidebar({int? line, String? text, String? end}) { ^ packages/source_span/src/highlighter.dart:495:45: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _colorize(void Function() callback, {required String? color}) { ^^^^^^^^ packages/source_span/src/highlighter.dart:495:60: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void _colorize(void Function() callback, {required String? color}) { ^ packages/source_span/src/highlighter.dart:519:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final String? label; ^ packages/source_span/src/highlighter.dart:667:12: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Uri? url; ^ packages/source_span/src/span_exception.dart:18:13: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceSpan? get span => _span; ^ packages/source_span/src/span_exception.dart:19:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final SourceSpan? _span; ^ packages/source_span/src/span_exception.dart:44:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? get offset => span?.start.offset; ^ packages/source_span/src/span_exception.dart:46:55: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceSpanFormatException(String message, SourceSpan? span, [this.source]) ^ packages/source_span/src/span_exception.dart:67:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. MultiSourceSpanException(String message, SourceSpan? span, this.primaryLabel, ^ packages/source_span/src/span_exception.dart:83:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String toString({color, String? secondaryColor}) { ^ packages/source_span/src/span_exception.dart:111:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? get offset => span?.start.offset; ^ packages/source_span/src/span_exception.dart:113:60: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. MultiSourceSpanFormatException(String message, SourceSpan? span, ^ packages/source_span/src/file.dart:26:12: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Uri? url; ^ packages/source_span/src/file.dart:50:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? _cachedLine; ^ packages/source_span/src/file.dart:90:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan span(int start, [int? end]) { ^ packages/source_span/src/file.dart:165:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int getColumn(int offset, {int? line}) { ^ packages/source_span/src/file.dart:193:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int getOffset(int line, [int? column]) { ^ packages/source_span/src/file.dart:217:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String getText(int start, [int? end]) => ^ packages/source_span/src/file.dart:235:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? get sourceUrl => file.url; ^ packages/source_span/src/file.dart:303:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? get sourceUrl => file.url; ^ packages/source_span/src/file.dart:428:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan subspan(int start, [int? end]) { ^ packages/source_span/src/file.dart:439:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan subspan(int start, [int? end]) { ^ packages/source_span/src/location.dart:19:12: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Uri? sourceUrl; ^ packages/source_span/src/location.dart:45:46: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceLocation(this.offset, {sourceUrl, int? line, int? column}) ^ packages/source_span/src/location.dart:45:57: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceLocation(this.offset, {sourceUrl, int? line, int? column}) ^ packages/source_span/src/location.dart:101:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceLocationBase(int offset, {sourceUrl, int? line, int? column}) ^ packages/source_span/src/location.dart:101:60: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SourceLocationBase(int offset, {sourceUrl, int? line, int? column}) ^ packages/source_span/src/utils.dart:19:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. bool isAllTheSame(Iterable iter) { ^ packages/source_span/src/utils.dart:34:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void replaceFirstNull(List list, E element) { ^ packages/source_span/src/utils.dart:41:31: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void replaceWithNull(List list, E element) { ^ packages/source_span/src/utils.dart:63:4: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? findLineStart(String context, String text, int column) { ^ packages/source_span/src/span_mixin.dart:20:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? get sourceUrl => start.sourceUrl; ^ packages/source_span/src/highlighter.dart:65:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return color as String?; ^ packages/source_span/src/highlighter.dart:129:52: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final highlightsByUrl = groupBy<_Highlight, Uri?>( ^ packages/source_span/src/highlighter.dart:145:71: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. context, highlight.span.text, highlight.span.start.column)!; ^ packages/source_span/src/highlighter.dart:194:24: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. List<_Highlight?>.filled(_maxMultilineSpans, null); ^ packages/source_span/src/highlighter.dart:286:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? openedOnThisLineColor; ^ packages/source_span/src/highlighter.dart:642:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. findLineStart(span.context, span.text, span.start.column)! + ^ packages/source_span/src/span_exception.dart:33:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return 'Error on ${span!.message(message, color: color)}'; ^ packages/source_span/src/span_exception.dart:87:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String? primaryColor; ^ packages/source_span/src/span_exception.dart:95:27: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final formatted = span!.messageMultiple( ^ packages/source_span/src/file.dart:74:58: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. : url = url is String ? Uri.parse(url) : url as Uri?, ^ packages/source_span/src/file.dart:110:54: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. if (_isNearCachedLine(offset)) return _cachedLine!; ^ packages/source_span/src/file.dart:113:23: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. return _cachedLine!; ^ packages/source_span/src/file.dart:122:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final cachedLine = _cachedLine!; ^ packages/source_span/src/file.dart:322:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? endOffset; ^ packages/source_span/src/file.dart:366:43: Error: The getter '_start' isn't defined for the class 'SourceSpan'. - 'SourceSpan' is from 'package:source_span/src/span.dart' ('packages/source_span/src/span.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named '_start'. final result = _start.compareTo(other._start); ^^^^^^ packages/source_span/src/file.dart:367:47: Error: The getter '_end' isn't defined for the class 'SourceSpan'. - 'SourceSpan' is from 'package:source_span/src/span.dart' ('packages/source_span/src/span.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named '_end'. return result == 0 ? _end.compareTo(other._end) : result; ^^^^ packages/source_span/src/location.dart:47:74: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. sourceUrl is String ? Uri.parse(sourceUrl) : sourceUrl as Uri?, ^ [SEVERE] build_node_compilers:ddc on package:js/js.ddc_node.module: Error compiling dartdevc module:js|lib/js.ddc_node.js packages/js/js.dart:20:15: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final String? name; ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read source_span|lib/source_span.ddc_node.js, check your console or the `.dart_tool/build/generated/source_span/lib/source_span.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:typed_data/src/typed_queue.ddc_node.module: Error compiling dartdevc module:typed_data|lib/src/typed_queue.ddc_node.js packages/typed_data/src/typed_queue.dart:234:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void fillRange(int start, int end, [E? value]) { ^ packages/typed_data/src/typed_queue.dart:245:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. L sublist(int start, [int? end]) { ^ packages/typed_data/src/typed_queue.dart:263:40: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int _writeToList(List target, [int? start, int? end]) { ^ packages/typed_data/src/typed_queue.dart:263:52: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int _writeToList(List target, [int? start, int? end]) { ^ packages/typed_data/src/typed_queue.dart:350:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uint8Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:372:17: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Int8Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:395:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uint8ClampedQueue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:417:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uint16Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:439:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Int16Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:460:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uint32Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:482:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Int32Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:504:19: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uint64Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:526:18: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Int64Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:549:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Float32Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:569:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Float64Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:590:20: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Int32x4Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:610:22: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Float32x4Queue([int? initialCapacity]) ^ packages/typed_data/src/typed_queue.dart:627:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int _chooseRealInitialCapacity(int? initialCapacity) { ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read js|lib/js.ddc_node.js, check your console or the `.dart_tool/build/generated/js/lib/js.ddc_node.js.errors` log file. [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read typed_data|lib/src/typed_queue.ddc_node.js, check your console or the `.dart_tool/build/generated/typed_data/lib/src/typed_queue.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:string_scanner/src/eager_span_scanner.ddc_node.module: Error compiling dartdevc module:string_scanner|lib/src/eager_span_scanner.ddc_node.js packages/string_scanner/src/exception.dart:17:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Uri? get sourceUrl => span?.sourceUrl; ^ packages/string_scanner/src/eager_span_scanner.dart:71:50: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. EagerSpanScanner(String string, {sourceUrl, int? position}) ^ packages/string_scanner/src/line_scanner.dart:76:45: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. LineScanner(String string, {sourceUrl, int? position}) ^ packages/string_scanner/src/string_scanner.dart:17:12: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final Uri? sourceUrl; ^ packages/string_scanner/src/string_scanner.dart:38:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Match? get lastMatch { ^ packages/string_scanner/src/string_scanner.dart:45:8: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Match? _lastMatch; ^ packages/string_scanner/src/string_scanner.dart:46:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? _lastMatchPosition; ^ packages/string_scanner/src/string_scanner.dart:59:45: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. StringScanner(this.string, {sourceUrl, int? position}) ^ packages/string_scanner/src/string_scanner.dart:84:6: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? peekChar([int? offset]) { ^ packages/string_scanner/src/string_scanner.dart:84:21: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. int? peekChar([int? offset]) { ^ packages/string_scanner/src/string_scanner.dart:107:41: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void expectChar(int character, {String? name}) { ^ packages/string_scanner/src/string_scanner.dart:143:39: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. void expect(Pattern pattern, {String? name}) { ^ packages/string_scanner/src/string_scanner.dart:180:35: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String substring(int start, [int? end]) { ^ packages/string_scanner/src/string_scanner.dart:198:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/string_scanner.dart:198:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/string_scanner.dart:198:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/utils.dart:9:25: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String string, Match? match, int? position, int? length) { ^ packages/string_scanner/src/utils.dart:9:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String string, Match? match, int? position, int? length) { ^ packages/string_scanner/src/utils.dart:9:52: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. String string, Match? match, int? position, int? length) { ^ packages/string_scanner/src/relative_span_scanner.dart:59:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan? get lastSpan => _lastSpan; ^ packages/string_scanner/src/relative_span_scanner.dart:60:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan? _lastSpan; ^ packages/string_scanner/src/relative_span_scanner.dart:75:67: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan spanFrom(LineScannerState startState, [LineScannerState? endState]) { ^ packages/string_scanner/src/relative_span_scanner.dart:94:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/relative_span_scanner.dart:94:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/relative_span_scanner.dart:94:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/span_scanner.dart:44:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan? get lastSpan { ^ packages/string_scanner/src/span_scanner.dart:49:11: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan? _lastSpan; ^ packages/string_scanner/src/span_scanner.dart:62:45: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. SpanScanner(String string, {sourceUrl, int? position}) ^ packages/string_scanner/src/span_scanner.dart:77:59: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. factory SpanScanner.eager(String string, {sourceUrl, int? position}) = ^ packages/string_scanner/src/span_scanner.dart:90:67: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. FileSpan spanFrom(LineScannerState startState, [LineScannerState? endState]) { ^ packages/string_scanner/src/span_scanner.dart:107:37: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/span_scanner.dart:107:49: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/span_scanner.dart:107:64: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. Never error(String message, {Match? match, int? position, int? length}) { ^ packages/string_scanner/src/eager_span_scanner.dart:34:62: Error: The getter '_scanner' isn't defined for the class 'LineScannerState'. - 'LineScannerState' is from 'package:string_scanner/src/line_scanner.dart' ('packages/string_scanner/src/line_scanner.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named '_scanner'. if (state is! _EagerSpanScannerState || !identical(state._scanner, this)) { ^^^^^^^^ packages/string_scanner/src/eager_span_scanner.dart:101:34: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final firstMatch = (lastMatch![0])!; ^ packages/string_scanner/src/eager_span_scanner.dart:101:39: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final firstMatch = (lastMatch![0])!; ^ packages/string_scanner/src/line_scanner.dart:107:43: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final newlines = _newlinesIn(lastMatch![0]!); ^ packages/string_scanner/src/line_scanner.dart:107:47: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. final newlines = _newlinesIn(lastMatch![0]!); ^ packages/string_scanner/src/line_scanner.dart:110:28: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _column += (lastMatch![0])!.length; ^ packages/string_scanner/src/line_scanner.dart:110:33: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _column += (lastMatch![0])!.length; ^ packages/string_scanner/src/line_scanner.dart:112:27: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _column = (lastMatch![0])!.length - newlines.last.end; ^ packages/string_scanner/src/line_scanner.dart:112:32: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _column = (lastMatch![0])!.length - newlines.last.end; ^ packages/string_scanner/src/string_scanner.dart:130:29: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _position = _lastMatch!.end; ^ packages/string_scanner/src/relative_span_scanner.dart:50:57: Error: The getter '_scanner' isn't defined for the class 'LineScannerState'. - 'LineScannerState' is from 'package:string_scanner/src/line_scanner.dart' ('packages/string_scanner/src/line_scanner.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named '_scanner'. if (state is! _SpanScannerState || !identical(state._scanner, this)) { ^^^^^^^^ packages/string_scanner/src/relative_span_scanner.dart:89:42: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _startLocation.offset + lastMatch!.end); ^ packages/string_scanner/src/span_scanner.dart:32:57: Error: The getter '_scanner' isn't defined for the class 'LineScannerState'. - 'LineScannerState' is from 'package:string_scanner/src/line_scanner.dart' ('packages/string_scanner/src/line_scanner.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named '_scanner'. if (state is! _SpanScannerState || !identical(state._scanner, this)) { ^^^^^^^^ packages/string_scanner/src/span_scanner.dart:102:53: Error: Null safety features are disabled for this library. Try removing the package language version or setting the language version to 2.10 or higher. _lastSpan = _sourceFile.span(position, lastMatch!.end); ^ [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read string_scanner|lib/src/eager_span_scanner.ddc_node.js, check your console or the `.dart_tool/build/generated/string_scanner/lib/src/eager_span_scanner.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:ddc on package:c_core/models.ddc_node.module: Error creating c_core|lib/models.ddc_node.dill Error creating kernel summary for module:c_core|lib/models.ddc_node.dill Response:--dart-sdk-summary=file:///usr/lib/dart/lib/_internal/ddc_sdk.dill --output=/tmp/scratch_spaceZJQFOH/packages/c_core/models.ddc_node.dill --packages-file=org-dartlang-app:///.dart_tool/package_config.json --multi-root-scheme=org-dartlang-app --exclude-non-sources --summary-only --target=ddc --libraries-file=file:///usr/lib/dart/lib/libraries.json --reuse-compiler-result --use-incremental-compiler --input-summary=org-dartlang-app:///packages/meta/meta.ddc_node.dill --input-summary=org-dartlang-app:///packages/built_value/serializer.ddc_node.dill --input-summary=org-dartlang-app:///packages/built_value/built_value.ddc_node.dill --input-summary=org-dartlang-app:///packages/built_value/json_object.ddc_node.dill --input-summary=org-dartlang-app:///packages/built_collection/built_collection.ddc_node.dill --input-summary=org-dartlang-app:///packages/built_value/standard_json_plugin.ddc_node.dill --input-summary=org-dartlang-app:///packages/pedantic/pedantic.ddc_node.dill --input-summary=org-dartlang-app:///packages/meta/meta_meta.ddc_node.dill --input-summary=org-dartlang-app:///packages/quiver/core.ddc_node.dill --input-summary=org-dartlang-app:///packages/fixnum/fixnum.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/collection.ddc_node.dill --input-summary=org-dartlang-app:///packages/quiver/collection.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/algorithms.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/iterable_zip.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/comparators.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/priority_queue.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/canonicalized_map.ddc_node.dill --input-summary=org-dartlang-app:///packages/quiver/src/collection/bimap.ddc_node.dill --input-summary=org-dartlang-app:///packages/collection/src/utils.ddc_node.dill --input-summary=org-dartlang-app:///packages/quiver/iterables.ddc_node.dill --input-summary=org-dartlang-app:///packages/quiver/src/iterables/concat.ddc_node.dill --no-sound-null-safety --source=package:c_core/src/_exports.dart --source=package:c_core/models.dart --source=package:c_core/src/models/note.dart --source=package:c_core/src/models/note.g.dart --source=package:c_core/src/models/_models.dart --source=package:c_core/src/models/serializers.dart --source=package:c_core/src/models/serializers.g.dart org-dartlang-app:///packages/c_core/src/_exports.dart:5:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries. export 'package:built_value/serializer.dart'; ^ org-dartlang-app:///packages/c_core/src/_exports.dart:4:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries. export 'package:built_value/built_value.dart'; ^ org-dartlang-app:///packages/c_core/src/_exports.dart:6:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries. export 'package:built_value/json_object.dart'; ^ org-dartlang-app:///packages/c_core/src/_exports.dart:3:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries. export 'package:built_collection/built_collection.dart'; ^ org-dartlang-app:///packages/c_core/src/_exports.dart:7:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries. export 'package:built_value/standard_json_plugin.dart'; ^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:147:62: Error: The parameter 'serialized' of the method '_$NoteSerializer.deserialize' has type 'Iterable', which does not match the corresponding type, 'Iterable', in the overridden method, 'StructuredSerializer.deserialize'. - 'Iterable' is from 'dart:core'. - 'Object' is from 'dart:core'. Change to a supertype of 'Iterable', or, for a covariant parameter, a subtype. Note deserialize(Serializers serializers, Iterable serialized, ^ org-dartlang-app:///packages/built_value/serializer.dart: Context: This is the overridden method ('deserialize'). org-dartlang-app:///packages/c_core/src/models/note.dart:75:19: Error: The parameter 'priority' can't have a value of 'null' because of its type 'int', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. @required int priority, ^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:76:12: Error: The parameter 'staffInitials' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String staffInitials, ^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:77:12: Error: The parameter 'staffAuthUid' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String staffAuthUid, ^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:78:12: Error: The parameter 'staffComment' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String staffComment, ^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:79:12: Error: The parameter 'body' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String body, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:80:12: Error: The parameter 'json' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String json, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:81:22: Error: The parameter 'tags' can't have a value of 'null' because of its type 'Iterable', but the implicit default value is 'null'. - 'Iterable' is from 'dart:core'. Try adding either an explicit non-'null' default value or the 'required' modifier. Iterable tags, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:82:22: Error: The parameter 'tradeRefs' can't have a value of 'null' because of its type 'Iterable', but the implicit default value is 'null'. - 'Iterable' is from 'dart:core'. Try adding either an explicit non-'null' default value or the 'required' modifier. Iterable tradeRefs, ^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:83:22: Error: The parameter 'authUids' can't have a value of 'null' because of its type 'Iterable', but the implicit default value is 'null'. - 'Iterable' is from 'dart:core'. Try adding either an explicit non-'null' default value or the 'required' modifier. Iterable authUids, ^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:84:9: Error: The parameter 'adjustedKarma' can't have a value of 'null' because of its type 'int', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. int adjustedKarma, ^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.dart:85:10: Error: The parameter 'acknowledgmentRequired' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. bool acknowledgmentRequired, ^^^^^^^^^^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:274:46: Error: The parameter 'updates' can't have a value of 'null' because of its type 'void Function(NoteBuilder)', but the implicit default value is 'null'. - 'NoteBuilder' is from 'package:c_core/src/models/note.dart' ('org-dartlang-app:///packages/c_core/src/models/note.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. factory _$Note([void Function(NoteBuilder) updates]) => ^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:278:13: Error: The parameter 'created' can't have a value of 'null' because of its type 'DateTime', but the implicit default value is 'null'. - 'DateTime' is from 'dart:core'. Try adding either an explicit non-'null' default value or the 'required' modifier. {this.created, ^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:279:12: Error: The parameter 'tradeRefs' can't have a value of 'null' because of its type 'BuiltList', but the implicit default value is 'null'. - 'BuiltList' is from 'package:built_collection/src/list.dart' ('org-dartlang-app:///packages/built_collection/src/list.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. this.tradeRefs, ^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:280:12: Error: The parameter 'authUids' can't have a value of 'null' because of its type 'BuiltList', but the implicit default value is 'null'. - 'BuiltList' is from 'package:built_collection/src/list.dart' ('org-dartlang-app:///packages/built_collection/src/list.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. this.authUids, ^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:281:12: Error: The parameter 'tags' can't have a value of 'null' because of its type 'BuiltList', but the implicit default value is 'null'. - 'BuiltList' is from 'package:built_collection/src/list.dart' ('org-dartlang-app:///packages/built_collection/src/list.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. this.tags, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:282:12: Error: The parameter 'staffAuthUid' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.staffAuthUid, ^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:283:12: Error: The parameter 'staffInitials' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.staffInitials, ^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:284:12: Error: The parameter 'staffComment' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.staffComment, ^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:285:12: Error: The parameter 'body' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.body, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:286:12: Error: The parameter 'json' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.json, ^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:287:12: Error: The parameter 'priority' can't have a value of 'null' because of its type 'int', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.priority, ^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:288:12: Error: The parameter 'priority0' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.priority0, ^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:289:12: Error: The parameter 'priority1' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.priority1, ^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:290:12: Error: The parameter 'priority2' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.priority2, ^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:291:12: Error: The parameter 'acknowledgmentRequired' can't have a value of 'null' because of its type 'bool', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.acknowledgmentRequired, ^^^^^^^^^^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:292:12: Error: The parameter 'acknowledgedStaffAuthUid' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.acknowledgedStaffAuthUid, ^^^^^^^^^^^^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:293:12: Error: The parameter 'acknowledgedStaffInitials' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.acknowledgedStaffInitials, ^^^^^^^^^^^^^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/note.g.dart:294:12: Error: The parameter 'acknowledgedTime' can't have a value of 'null' because of its type 'DateTime', but the implicit default value is 'null'. - 'DateTime' is from 'dart:core'. Try adding either an explicit non-'null' default value or the 'required' modifier. this.acknowledgedTime}) ^^^^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/_models.dart:11:12: Error: The parameter 'subCollection' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String subCollection, ^^^^^^^^^^^^^ org-dartlang-app:///packages/c_core/src/models/_models.dart:12:12: Error: The parameter 'subCollectionPath' can't have a value of 'null' because of its type 'String', but the implicit default value is 'null'. Try adding either an explicit non-'null' default value or the 'required' modifier. String subCollectionPath, ^^^^^^^^^^^^^^^^^ [SEVERE] build_node_compilers:ddc on node/config_firebase.ddc_node.module: AssetNotFoundException: c_core|lib/models.ddc_node.dill [WARNING] build_node_compilers:entrypoint on node/index.dart: Unable to read c_functions|node/config_firebase.ddc_node.js, check your console or the `.dart_tool/build/generated/c_functions/node/config_firebase.ddc_node.js.errors` log file. [SEVERE] build_node_compilers:entrypoint on node/index.dart: AssetNotFoundException: c_functions|node/config_firebase.ddc_node.js [INFO] Running build completed, took 13.9s [INFO] Caching finalized dependency graph... [INFO] Caching finalized dependency graph completed, took 99ms [SEVERE] Failed after 14.0s ```
vsmenon commented 3 years ago

Do you have a lower constraint set in your pubspec.yaml file for the Dart SDK? E.g., if you have 2.11.0 or lower set here:

https://dart.dev/null-safety/migration-guide#sdk-constraints

then null safety should be disabled for your entire project.

jimmyff commented 3 years ago

@vsmenon on my ubuntu WSL2 machine apt has installed Dart SDK 2.12.1 and specifying anything lower than that in my pubspec just results in version solving failed.. Dart is installed via apt get and I don't believe there is a way to specify a particular version.

vsmenon commented 3 years ago

Just sanity checking - what do you see if you run:

> pub --version

or

> dart --version

The pub command is now integrated into the dart one - do you see anything different if you run:

> dart pub ...

FYI - @mit-mit @leafpetersen - I think the build logs look like an old version of Dart is somehow being used.

mit-mit commented 3 years ago

Can you please check your path and make sure you don't have an older SDK in there somewhere?

Dart 2.12 has moved pub to be a subcommand dart pub, so if you can just run pub that seems to suggest you have an older SDK in path.

jimmyff commented 3 years ago

@vsmenon I've tried running dart dart run build_runner build --output=build/ but I get the same result (errors or version solving failed based on SDK in pubspec)

pub --version
Pub 2.12.1

dart --version
Dart SDK version: 2.12.1 (stable) (Unknown timestamp) on "linux_x64"

@mit-mit I've can't find any older SDKs, this is a relatively new install (around 2 months) :

whereis dart
dart: /usr/bin/dart /usr/lib/dart /mnt/d/dev/sdks/flutter/bin/dart /mnt/d/dev/sdks/flutter/bin/dart.bat /usr/lib/dart/bin/dart

/usr/bin/dart --version
Dart SDK version: 2.12.1 (stable) (Unknown timestamp) on "linux_x64"

/usr/lib/dart/bin/dart --version
Dart SDK version: 2.12.1 (stable) (Unknown timestamp) on "linux_x64"
vsmenon commented 3 years ago

It looks like you also have a version of dart bundled with flutter. What version is that? E.g.,

> flutter --version

> /mnt/d/dev/sdks/flutter/bin/dart --version

Can you also share your pubspec.yaml and pubspec.lock files?

jimmyff commented 3 years ago

@vsmenon I can't run those, they're on the Windows side of things, this is ubuntu running in WSL2. When I try to run them I get /usr/bin/env: ‘bash\r’: No such file or directory

This is the current pubspec but I've tried every combination of values for the sdk constraint. It's a brand new project setup for package:firebase_functions_interop

pubspec.yaml ```yaml name: c_functions description: c cloud functions version: 0.0.1 publish_to: none environment: sdk: '>=2.8.0 <3.0.0' dependencies: # Firebase Functions bindings firebase_functions_interop: ^1.0.2 c_core: path: ../../c_core firebase_admin_interop: any googleapis: any googleapis_auth: any node_http: any dev_dependencies: # Needed to compile Dart to valid Node.js module. build_runner: ">=1.11.0 <1.12.0" build_node_compilers: ^0.3.0 ```
pubspec.lock ```yaml # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: _discoveryapis_commons: dependency: transitive description: name: _discoveryapis_commons url: "https://pub.dartlang.org" source: hosted version: "0.2.1" _fe_analyzer_shared: dependency: transitive description: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted version: "12.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted version: "0.40.6" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted version: "1.6.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted version: "2.5.0" bazel_worker: dependency: transitive description: name: bazel_worker url: "https://pub.dartlang.org" source: hosted version: "0.1.25" build: dependency: transitive description: name: build url: "https://pub.dartlang.org" source: hosted version: "1.5.2" build_config: dependency: transitive description: name: build_config url: "https://pub.dartlang.org" source: hosted version: "0.4.2" build_daemon: dependency: transitive description: name: build_daemon url: "https://pub.dartlang.org" source: hosted version: "2.1.10" build_modules: dependency: transitive description: name: build_modules url: "https://pub.dartlang.org" source: hosted version: "2.11.0" build_node_compilers: dependency: "direct dev" description: name: build_node_compilers url: "https://pub.dartlang.org" source: hosted version: "0.3.0" build_resolvers: dependency: transitive description: name: build_resolvers url: "https://pub.dartlang.org" source: hosted version: "1.4.4" build_runner: dependency: "direct dev" description: name: build_runner url: "https://pub.dartlang.org" source: hosted version: "1.11.1" build_runner_core: dependency: transitive description: name: build_runner_core url: "https://pub.dartlang.org" source: hosted version: "6.0.3" built_collection: dependency: transitive description: name: built_collection url: "https://pub.dartlang.org" source: hosted version: "4.3.2" built_value: dependency: transitive description: name: built_value url: "https://pub.dartlang.org" source: hosted version: "7.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted version: "1.2.0" checked_yaml: dependency: transitive description: name: checked_yaml url: "https://pub.dartlang.org" source: hosted version: "1.0.4" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted version: "0.1.4" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted version: "1.1.0" code_builder: dependency: transitive description: name: code_builder url: "https://pub.dartlang.org" source: hosted version: "3.7.0" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted version: "1.15.0" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted version: "2.1.1" c: dependency: transitive description: name: c url: "https://pub.dartlang.org" source: hosted version: "2.1.5" c_core: dependency: "direct main" description: path: "../../c_core" relative: true source: path version: "0.0.1" dart_style: dependency: transitive description: name: dart_style url: "https://pub.dartlang.org" source: hosted version: "1.3.10" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted version: "5.2.1" firebase_admin_interop: dependency: "direct main" description: name: firebase_admin_interop url: "https://pub.dartlang.org" source: hosted version: "1.2.2" firebase_functions_interop: dependency: "direct main" description: name: firebase_functions_interop url: "https://pub.dartlang.org" source: hosted version: "1.0.2" fixnum: dependency: transitive description: name: fixnum url: "https://pub.dartlang.org" source: hosted version: "0.10.11" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted version: "1.2.0" googleapis: dependency: "direct main" description: name: googleapis url: "https://pub.dartlang.org" source: hosted version: "1.0.0" googleapis_auth: dependency: "direct main" description: name: googleapis_auth url: "https://pub.dartlang.org" source: hosted version: "0.2.12+1" graphs: dependency: transitive description: name: graphs url: "https://pub.dartlang.org" source: hosted version: "0.2.0" http: dependency: transitive description: name: http url: "https://pub.dartlang.org" source: hosted version: "0.12.2" http_multi_server: dependency: transitive description: name: http_multi_server url: "https://pub.dartlang.org" source: hosted version: "2.2.0" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted version: "3.1.4" intl: dependency: transitive description: name: intl url: "https://pub.dartlang.org" source: hosted version: "0.17.0" io: dependency: transitive description: name: io url: "https://pub.dartlang.org" source: hosted version: "0.3.5" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted version: "0.6.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted version: "3.1.1" logging: dependency: transitive description: name: logging url: "https://pub.dartlang.org" source: hosted version: "0.11.4" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted version: "0.12.10" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted version: "1.3.0" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted version: "0.9.7" node_http: dependency: "direct main" description: name: node_http url: "https://pub.dartlang.org" source: hosted version: "1.0.1" node_interop: dependency: transitive description: name: node_interop url: "https://pub.dartlang.org" source: hosted version: "1.2.1" node_io: dependency: transitive description: name: node_io url: "https://pub.dartlang.org" source: hosted version: "1.2.0" node_preamble: dependency: transitive description: name: node_preamble url: "https://pub.dartlang.org" source: hosted version: "1.4.13" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted version: "1.9.3" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted version: "1.8.0" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted version: "1.11.0" pool: dependency: transitive description: name: pool url: "https://pub.dartlang.org" source: hosted version: "1.5.0" protobuf: dependency: transitive description: name: protobuf url: "https://pub.dartlang.org" source: hosted version: "1.1.3" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted version: "1.4.4" pubspec_parse: dependency: transitive description: name: pubspec_parse url: "https://pub.dartlang.org" source: hosted version: "0.1.8" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted version: "2.1.5" quiver_hashcode: dependency: transitive description: name: quiver_hashcode url: "https://pub.dartlang.org" source: hosted version: "2.0.0" scratch_space: dependency: transitive description: name: scratch_space url: "https://pub.dartlang.org" source: hosted version: "0.0.4+3" shelf: dependency: transitive description: name: shelf url: "https://pub.dartlang.org" source: hosted version: "0.7.9" shelf_web_socket: dependency: transitive description: name: shelf_web_socket url: "https://pub.dartlang.org" source: hosted version: "0.2.4+1" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted version: "1.8.1" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0" stream_transform: dependency: transitive description: name: stream_transform url: "https://pub.dartlang.org" source: hosted version: "1.2.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted version: "1.2.0" timing: dependency: transitive description: name: timing url: "https://pub.dartlang.org" source: hosted version: "0.1.1+3" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted version: "1.3.0" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted version: "0.9.7+15" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted version: "1.2.0" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted version: "2.2.1" sdks: dart: ">=2.12.0-0.0 <3.0.0" ```
vsmenon commented 3 years ago

Ah, build_node_compilers isn't directly supported by the Dart SDK - it's a different way of invoking Dart compilers and needs its own plumbing to correctly enable/disable null safety.

You can follow their work here:

https://github.com/pulyaevskiy/node-interop/issues/92

In the meantime, you may need to downgrade to 2.11 or lower.

jimmyff commented 3 years ago

ah, apologies for wasting your time with this then @vsmenon I'll try to figure out how to downgrade my SDK while the node interop package catches up

jimmyff commented 3 years ago

crikey that was simple, Thanks @vsmenon

sudo apt-get install dart=2.10.3-1

and suddenly it's working, thanks again for your help