Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null-safety #35

Open
pixelcmtd opened this issue Apr 27, 2021 · 2 comments
Open

Null-safety #35

pixelcmtd opened this issue Apr 27, 2021 · 2 comments

Comments

@pixelcmtd
Copy link

pixelcmtd commented Apr 27, 2021

About 2 months ago, Dart 2.12 was released, which made NNBD/Null-safety stable. This package has to be migrated.

Closed by #36.

@ostafen
Copy link

ostafen commented Dec 3, 2021

Give a look at #36.

@7NT
Copy link

7NT commented Jun 6, 2022

Still trouble, when I run: dart migrate
Analyzing project...
[-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|]
2 analysis issues found:

error • A value of type 'Entity*' can't be assigned to a variable of type 'Channel' at lib/example.dart:125:23 • (invalid_assignment)
error • The method 'add' can't be unconditionally invoked because the receiver can be 'null' at lib/example.dart:198:25 • (unchecked_use_of_nullable_value)

The migration tool didn't start, due to analysis errors.

The following steps might fix your problem:

  1. Set the lower SDK constraint (in pubspec.yaml) to a version before 2.12.
  2. Run dart pub get.
  3. Try running dart migrate again.

More information: https://dart.dev/go/null-safety-migration

flutter --version : 3.0.1
dart --version: 2.17.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants