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

the _scanResults.value returns a nullable List<BluetoothDevice> #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

task-win
Copy link

No description provided.

@task-win
Copy link
Author

Please help to verify the changes as it is giving us the compiler error.
[+1437 ms] ../../../../../.pub-cache/hosted/pub.dev/bluetooth_print-4.3.0/lib/bluetooth_print.dart:96:55: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't.
[ ] - 'List' is from 'dart:core'.
[ ] - 'BluetoothDevice' is from 'package:bluetooth_print/bluetooth_print_model.dart' ('../../../../../.pub-cache/hosted/pub.dev/bluetooth_print-4.3.0/lib/bluetooth_print_model.dart').
[ ] final List list = _scanResults.value;
[ ] ^
[+1846 ms] [+4796 ms] ../../../../../.pub-cache/hosted/pub.dev/bluetooth_print-4.3.0/lib/bluetooth_print.dart:96:55: Error: A value of type 'List?' can't be assigned to a variable of type 'List' because 'List?' is nullable and 'List' isn't.
[ +1 ms] [ +1 ms] - 'List' is from 'dart:core'.
[ ] [ ] - 'BluetoothDevice' is from 'package:bluetooth_print/bluetooth_print_model.dart' ('../../../../../.pub-cache/hosted/pub.dev/bluetooth_print-4.3.0/lib/bluetooth_print_model.dart').
[ ] [ ] final List list = _scanResults.value;
[ ] [ ] ^

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

Successfully merging this pull request may close these issues.

1 participant