DBusValue class abstract

Base class for D-Bus values.

Implementers

Constructors

DBusValue()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature DBusSignature
Gets the signature for this value.
no setter

Methods

asArray() List<DBusValue>
Extracts the array inside this value. Only works if signature is an array type, e.g 'as'.
asBoolean() bool
Converts this value to the native Dart representation of a boolean. Only works if signature is 'b'.
asBooleanArray() Iterable<bool>
Extracts the boolean values inside this array. Only works if signature is 'ab'.
asByte() int
Converts this value to the native Dart representation of a byte. Only works if signature is 'y'.
asByteArray() Iterable<int>
Extracts the bytes inside this array. Only works if signature is 'ay'.
asDict() Map<DBusValue, DBusValue>
Extracts the dictionary inside this vlaue. Only works if signature is a dictionary type, e.g 'a{os}'.
asDouble() double
Converts this value to the native Dart representation of a 64 bit floating point number. Only works if signature is 'd'.
asDoubleArray() Iterable<double>
Extracts the 64 bit floating point numbers inside this array. Only works if signature is 'ad'.
asInt16() int
Converts this value to the native Dart representation of a 16 bit signed integer. Only works if signature is 'n'.
asInt16Array() Iterable<int>
Extracts the 16 bit signed integers inside this array. Only works if signature is 'an'.
asInt32() int
Converts this value to the native Dart representation of a 32 bit signed integer. Only works if signature is 'i'.
asInt32Array() Iterable<int>
Extracts the 32 bit signed integers inside this array. Only works if signature is 'ai'.
asInt64() int
Converts this value to the native Dart representation of a 64 bit signed integer. Only works if signature is 'x'.
asInt64Array() Iterable<int>
Extracts the 64 bit signed integers inside this array. Only works if signature is 'ax'.
asMaybe() DBusValue?
Extracts the maybe type inside this value. Only works if signature is a maybe type, e.g. 'mi'.
asObjectPath() DBusObjectPath
Extracts the object path inside this value. Only works if signature is 'o'.
asObjectPathArray() Iterable<DBusObjectPath>
Extracts the object paths inside this array. Only works if signature is 'ao'.
asSignature() DBusSignature
Extracts the signature inside this value. Only works if signature is 'g'.
asSignatureArray() Iterable<DBusSignature>
Extracts the signatures inside this array. Only works if signature is 'ag'.
asString() String
Converts this value to the native Dart representation of a string. Only works if signature is 's'.
asStringArray() Iterable<String>
Extracts the strings inside this array. Only works if signature is 'as'.
asStringVariantDict() Map<String, DBusValue>
Extracts the string to variant dictionary inside this value. Only works if signature is 'a{sv}'.
asStruct() List<DBusValue>
Extracts this child values inside this struct. Only works if signature is a struct type, e.g '(si)'.
asUint16() int
Converts this value to the native Dart representation of a 16 bit unsigned integer. Only works if signature is 'q'.
asUint16Array() Iterable<int>
Extracts the 16 bit unsigned integers inside this array. Only works if signature is 'aq'.
asUint32() int
Converts this value to the native Dart representation of a 32 bit unsigned integer. Only works if signature is 'u'.
asUint32Array() Iterable<int>
Extracts the 32 bit unsigned integers inside this array. Only works if signature is 'au'.
asUint64() int
Converts this value to the native Dart representation of a 64 bit unsigned integer. Only works if signature is 't'.
asUint64Array() Iterable<int>
Extracts the 64 bit unsigned integers inside this array. Only works if signature is 'at'.
asUnixFd() ResourceHandle
Extracts the ResourceHandle inside this unix file descriptor D-Bus value. Only works if signature is 'h'.
asUnixFdArray() Iterable<ResourceHandle>
Extracts the resource handles inside this array of unix file descriptors. Only works if signature is 'ah'.
asVariant() DBusValue
Extracts the value stored inside this variant. Only works if signature is 'v'.
asVariantArray() Iterable<DBusValue>
Extracts the values inside this variant array. Only works if signature is 'av'.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNative() → dynamic
Converts this value to a native Dart representation.
toString() String
A string representation of this object.
inherited

Operators

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