ElField class
- Annotations
-
- @Target.new({TargetKind.field})
Constructors
-
ElField({String? jsonKey, dynamic defaultValue, bool? useMerge})
-
模型字段注解
const
Properties
-
defaultValue
→ dynamic
-
指定默认值,当反序列化时如果 json 没有目标参数、或者目标类型转换失败时将使用此默认值
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
jsonKey
→ String?
-
序列化、反序列化时指定映射的 json key
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
useMerge
→ bool?
-
在生成 copyWith 方法时,是否对目标字段应用 merge 方法,
默认情况下,当反射检测到对象提供了 merge 方法时,就默认应用它。
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