Metadata class - core library - Dart API
Metadata
Metadata class abstract
Holds metadata on behalf of a map item.
An instance of this class can contain metadata items of varying types, such as String, Integer, Double, GeoCoordinates etc. and can also hold arbitrary metadata types by the use of the CustomMetadataValue abstract class.
Constructors
- Metadata()
-
Creates an instance of this class.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCustomValue(
String key) → CustomMetadataValue? - Obtains an instance of the CustomMetadataValue class associated with a given key.
-
getDouble(
String key) → double? - Obtains a Double value associated with a given key.
-
getGeoCoordinates(
String key) → GeoCoordinates? - Obtains a GeoCoordinates value associated with a given key.
-
getInteger(
String key) → int? - Obtains an Integer value associated with a given key.
-
getString(
String key) → String? - Obtains a String value associated with a given key.
-
getType(
String key) → MetadataType? - Determines the type of a metadata value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeValue(
String key) → void - Removes a metadata key and its associated value.
-
setCustomValue(
String key, CustomMetadataValue value) → void - Creates a key:value pair, where the value is a type derived from CustomMetadataValue.
-
setDouble(
String key, double value) → void - Creates a key:value pair, where the value is of type Double.
-
setGeoCoordinates(
String key, GeoCoordinates value) → void - Creates a key:value pair, where the value is of type GeoCoordinates.
-
setInteger(
String key, int value) → void - Creates a key:value pair, where the value is of type Integer.
-
setString(
String key, String value) → void - Creates a key:value pair, where the value is of type String.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited