当前位置:网站首页>Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.

Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.

2022-07-07 05:04:00 Liu Xiaobo

Error report as shown in the figure

…/…/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/animations-2.0.2/lib/src/open_container.dart:631:24: Warning: Operand of null-aware operation ‘!’ has type ‘SchedulerBinding’ which excludes null.

  • ‘SchedulerBinding’ is from ‘package:flutter/src/scheduler/binding.dart’ (‘…/…/Documents/flutter/packages/flutter/lib/src/scheduler/binding.dart’).
    SchedulerBinding.instance! Please add a picture description

reason

yes animations The version of the library is low , You need to update
 Please add a picture description

Repair

Increase the version number to large enough , I add here to 2.0.3 That's all right.  Please add a picture description

原网站

版权声明
本文为[Liu Xiaobo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062236302662.html