After updating my flutter installation (Channel beta, 2.12.0-4.2.pre), I get the following warnings:
Launching lib/main.dart on Linux in debug mode...
ERROR: ../../../Apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_redux-0.9.0/lib/flutter_redux.dart:474:22: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
ERROR: - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Apps/flutter/packages/flutter/lib/src/widgets/binding.dart').
ERROR: WidgetsBinding.instance?.addPostFrameCallback((_) {
ERROR: ^
ERROR: ../../../Apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_redux-0.9.0/lib/flutter_redux.dart:577:22: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
ERROR: - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Apps/flutter/packages/flutter/lib/src/widgets/binding.dart').
ERROR: WidgetsBinding.instance?.addPostFrameCallback((_) {
ERROR: ^
Apparently, WidgetsBinding.instance will return a not-null value in the future.
After updating my flutter installation (Channel beta, 2.12.0-4.2.pre), I get the following warnings:
Apparently,
WidgetsBinding.instance
will return a not-null value in the future.