fromString static method
从 Excel 注解字符串解析类型,如 "int" → intType,未知类型默认 string
Implementation
static PlaceholderType fromString(String? s) => switch (s?.toLowerCase()) {
'int' => intType,
'double' => doubleType,
'num' => numType,
'datetime' => dateTimeType,
_ => string,
};