FieldInfo class
A single field, parsed.
Constructors
- FieldInfo.fromElement(FieldElement element, String? defaultValueCode)
Properties
- attributeName → String
-
Either the name specified in @alias, or the element's name
no setter
- conversion → String
-
Contents of the @convert tag, if present, else null
no setter
- customTemplate → String
-
Contents of the @convert tag, if present, else null
no setter
- defaultValueCode → String?
-
If this has a default value, contains its source code, else null
final
- element → FieldElement
-
final
- hasConversion → bool
-
True if annotated with @convert
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAttributeField → bool
-
Attribute heuristic: primitive type or annotated w/ @convert, not xml text.
no setter
- isChildField → bool
-
Is this a child tag?
no setter
- isCustom → bool
-
Has this been annotated with
@custom
no setter - isDeferred → bool
-
True for custom fields, as they need to be assigned just before the constructor
no setter
- isList → bool
-
True if this field contains a list
no setter
- isPrimitive → bool
-
True if this field is
bool
,double
,int
, orString
no setter - isUri → bool
-
True if this field is a
Uri
(used to convert viaUri.parse
)no setter - isXmlTextField → bool
-
True if this field should come from
XmlTextEvent
no setter - name → String
-
Field name
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trueIfEquals → String?
-
Contents of @trueIfEquals annotation, if present
no setter
- trueIfMatches → String?
-
Contents of @trueIfMatches annotation, if present
no setter
- type → DartType
-
Field type
no setter
- typeName → String
-
Field type as String
no setter
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