【发布时间】:2023-02-14 17:43:02
【问题描述】:
final Widget child;
final Colors color;
const FlexibleContainer({required this.child, Colors? this.color, Key? key}) : super(key: key);
我在 this.color 中收到错误 - parameter type Colors is incompatible with field type Colors
【问题讨论】: