toLabelOr method
Implementation
String toLabelOr(int? value, String? emptyText) {
if (value == null || !bitOperator) {
return items[value] ?? emptyText ?? missLabel;
}
List<String> ls = [];
for (var e in items.entries) {
if (e.key & value != 0) ls.add(e.value);
}
if (ls.isEmpty) return emptyText ?? missLabel;
return ls.join(",");
}