EasyCoderModelInfo class
代码生成器模型信息
Constructors
-
EasyCoderModelInfo({String? outputFile, required List<
String> importList, required List<String> classDesc, required String className, List<EasyCoderFieldInfo> constFields = const [], List<EasyCoderFieldInfo> classFields = const [], List<EasyCoderFieldInfo> extraFields = const [], String? wrapType, bool constMap = false, bool dirty = true, bool query = true})
Properties
-
classDesc
→ List<
String> -
模型类的注释信息
final
-
classFields
→ List<
EasyCoderFieldInfo> -
模型实例的成员字段
final
- className → String
-
模型类的名称
final
-
constFields
→ List<
EasyCoderFieldInfo> -
模型类的常量字段
final
- constMap → bool
-
是否生成constFields字段的Map映射,为true时constFields的每个子项类型必须为int
final
- dirty → bool
-
是否生成写入辅助类
final
-
extraFields
→ List<
EasyCoderFieldInfo> -
模型实例的扩展字段,这一部分字段不参与序列化和查询
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasObjectIdField → bool
-
no setter
-
importList
→ List<
String> -
模型类的import部分
final
- outputFile → String?
-
模型类输出文件名称
final
- query → bool
-
是否生成查询辅助类
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wrapType → String?
-
对应的包装类型。不为null时生成的json格式:{type: xxx, args: {...}}
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited