chore(deps): bump web from 0.5.1 to 1.0.0 in /packages/battery_plus/battery_plus #416
battery_plus.yaml
on: pull_request
Dart Analyzer
1m 3s
android_example_build
6m 42s
ios_example_build
2m 53s
ios_integration_test
8m 41s
macos_example_build
2m 31s
macos_integration_test
0s
linux_example_build
1m 21s
linux_integration_test
1m 37s
windows_example_build
1m 59s
windows_integration_test
2m 32s
web_example_build
58s
Matrix: android_integration_test
Annotations
3 errors, 1 warning, and 1 notice
web_example_build
Process completed with exit code 1.
|
A value of type 'BatteryManager?' can't be returned from the method '_getBatteryManager' because it has a return type of 'Future<BatteryManager?>'.:
packages/battery_plus/battery_plus/lib/src/battery_plus_web.dart#L21
See https://dart.dev/diagnostics/return_of_invalid_type to learn more about this problem.
|
Dart Analyzer
Dart Analyzer detected problems, see the logs for more information.
|
The receiver can't be null, so the null-aware operator '?.' is unnecessary.:
packages/battery_plus/battery_plus/lib/src/battery_plus_web.dart#L21
Try replacing the operator '?.' with '.'.
See https://dart.dev/diagnostics/invalid_null_aware_operator to learn more about this problem.
|
The declaration 'getBattery' isn't referenced.:
packages/battery_plus/battery_plus/lib/src/battery_plus_web.dart#L111
Try removing the declaration of 'getBattery'.
See https://dart.dev/diagnostics/unused_element to learn more about this problem.
|