/// 字符串工具类 class StringUtils { StringUtils._(); static String boolStr(bool? value) { return switch (value) { true => '是', false => '否', _ => '', }; } static String boolStrByNum(num? value) { return switch (value) { 0 => '是', 1 => '否', _ => '', }; } }