Unit.string constructor
Unit.string({
- required String uName,
- List<
Constraints> ? constraints, - String? defaultValue,
创建String类型的字段
Implementation
factory Unit.string({required String uName, List<Constraints>? constraints, String? defaultValue}) {
return UnitString(uName: uName, constraints: constraints, defaultValue: defaultValue).toTableUnit();
}