KmlNonSchemaData class final

The KML simple fields and key/value pairs obtained from the node's non-schema data.

Implemented types

Constructors

KmlNonSchemaData.withTypedAttributes(Map<KmlSimpleField, dynamic> typedAttributes)
Creates typed non-schema data from the attribute key-value pairs.
factory
KmlNonSchemaData.withUntypedAttributes(Map<String, String> untypedAttributes)
Creates untyped non-schema data from the attribute key-value pairs.
factory

Properties

attributes → Map<CaseInsensitiveString, dynamic>
The key-value pairs obtained from the node's non-schema data.
no setter
fields → List<KmlSimpleField>
The collection of KML simple fields representing the non-schema data.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTypedField({required KmlSimpleField field, required dynamic attributeValue}) → void
Adds the given field with an attribute value.
addUntypedField({required String name, required String attributeValue}) → void
Adds the given field as string type with an attribute value.
getField({required String name}) → KmlSimpleField?
Returns the KML simple field object with the given name, or null if no such field exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeField({required String name}) → void
Removes the attribute corresponding to the provided field name from KmlNonSchemaData.attributes and the corresponding field from KmlNonSchemaData.fields.
setAttributeValue({required String attributeName, dynamic attributeValue, AttributeType attributeType = .variant}) → void
Sets the value of an existing attribute.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited