我正在使用新的材料树,并希望以OptionGroup的形式传递一系列自定义对象,这些对象包含一个标签属性,我需要使用LabelFunction来增强它,但是,这个特定的ty对联不接受任何值,只是希望输出一个字符串, pulsar2, pulsar3],]);
// This is the problem, since the typedef String LabelFunctionString labeler(pulsar p) => "${p.id} : ${p
现在,我有这个labelFunction: var seconds: Number = item[column.dataField];
return timeFormat.selectedItem.labelFunctiontimeFormat对象是一个组合框,其中包含labelFunction属性为formatTimeAsFractions和f