format<T> static method
格式化文本内容
Implementation
static String? format<T>(T value, List<TdCascaderItem<T>> options, [String separator = ' / ']) {
final result = matchSelector(value, options);
if (result.isNotEmpty) {
return result.map((item) => item.label).toList().reversed.join(separator);
}
return null;
}