EasyCoderConfig class

代码生成器配置

Inheritance

Constructors

EasyCoderConfig({EasyLogHandler? logger, EasyLogLevel? logLevel, String? logTag, String? logFilePath, int? logFileBackup, int? logFileMaxBytes, required String absFolder, String baseClass = 'DbBaseModel', String indent = ' ', Map<String, String> customFieldsToWrapVals = const {}, Map<String, String> customFieldsToJsonVals = const {}, Map<String, String> customBaseFromJsonVals = const {}, Map<String, String> customNestFromJsonKeys = const {}, Map<String, String> customNestFromJsonVals = const {}, bool isSubclassOfVmSuper = false})

Properties

absFolder String
导出文件路径
final
baseClass String
模型继承类型
final
baseFromJsonVals Map<String, String>
基本数据类型fromJson方法-值转换(用来解析 非List 与 非Map 类型)
final
fieldsToJsonVals Map<String, String>
成员数据类型toJson方法
final
fieldsToWrapVals Map<String, String>
成员数据类型builder方法
final
hashCode int
The hash code for this object.
no setterinherited
indent String
代码缩进单位
final
isSubclassOfVmSuper bool
是否为 VmSuper 的子类,为true时:生成的toString函数将被添加 minLevel 参数
final
logFileBackup int?
日志文件保存数量
finalinherited
logFileMaxBytes int?
日志文件每份大小(字节)
finalinherited
logFilePath String?
日志输出文件路径
finalinherited
logger EasyLogHandler?
日志处理方法
finalinherited
logLevel EasyLogLevel?
日志级别
finalinherited
logTag String?
日志标签
finalinherited
nestFromJsonKeys Map<String, String>
嵌套数据类型fromJson方法-键转换(用来解析 Map<KeyType, ValType >的 KeyType 。jsonEncode操作Map时只支持以字符串为key,mongo数据库保存Map时只支持以字符串为key)
final
nestFromJsonVals Map<String, String>
嵌套数据类型fromJson方法-值转换(用来解析 List
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

compileTemplateCode(String templateCode, String valueCode, String typeCode) String

Constants

defaultType → const String