【发布时间】:2017-09-12 07:10:56
【问题描述】:
IDE 将 StoreWatcher Flutter Widget 识别为不可变的。 @immutable 注释在哪里?它不在 store_watcher.dart 源代码中。
【问题讨论】:
标签: annotations immutability flutter
IDE 将 StoreWatcher Flutter Widget 识别为不可变的。 @immutable 注释在哪里?它不在 store_watcher.dart 源代码中。
【问题讨论】:
标签: annotations immutability flutter
【讨论】:
StoreWatcher 扩展了 StatefulWidget,它扩展了 Widget,它具有 @immutable 注释。 github.com/flutter/flutter/blob/…
StatefulWidget 的通知中看到@immutable,它一定是一直不可变的。
@immutable 的支持。