When running the project, a couple of warnings like this are displayed:
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_week_view-1.2.1+1/lib/src/widgets/week_view.dart:407:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/Apps/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance
^
In Flutter 3, WidgetsBinding.instance is no longer nullable, so the ?. operator is no longer necessary.
To Reproduce
Reproducible by using Flutter 3 and flutter_week_view: ^1.2.1+1 in the same project.
Describe the bug
When running the project, a couple of warnings like this are displayed:
In Flutter 3, WidgetsBinding.instance is no longer nullable, so the
?.
operator is no longer necessary.To Reproduce Reproducible by using Flutter 3 and
flutter_week_view: ^1.2.1+1
in the same project.