Failed to build the example app on v3.0.0-nullsafety.1
matsunanaro opened this issue · comments
Describe the bug
Failed to build the example app using v3.0.0-nullsafety.1.
The example app appears not to be migrated to null safety yet; while its parent package has!
To Reproduce
Steps to reproduce the behavior:
-
Launch IDE e.g. Visual Studio
-
Click on the main.dart file under the example subfolder
-
Build
-
The following errors will appear:
BuiltValueNullFieldError.checkNotNull(
^^^^^^^^^^^^
../lib/src/replicated_document.g.dart:85:30: Error: Method not found: 'BuiltValueNullFieldError.checkNotNull'.
BuiltValueNullFieldError.checkNotNull(id, 'ReplicatedDocument', 'id');^^^^^^^^^^^^
../lib/src/replicated_document.g.dart:86:30: Error: Method not found: 'BuiltValueNullFieldError.checkNotNull'.
BuiltValueNullFieldError.checkNotNull(flags, 'ReplicatedDocument', 'flags');
^^^^^^^^^^^^
Additional context
If you open the file "example/pubspec.yaml", the environment is still set to:
environment:
sdk: ">=2.6.0 <3.0.0"
It clearly indicates that the example app needs to be migrated to null safety. Or it won't build successfully
Fixed the issue on the PR I just created