加入const后:
代码:style: TextStyle(color: const ColorUtil.color("#899900")),
报错:The argument type 'ColorUtil' can't be assigned to the parameter type 'Color?'. (Documentation)
The class 'ColorUtil' doesn't have a constant constructor 'color'. Try calling a different constructor.