Option<T> class
abstract
This class describes the options of the CoAP messages.
- Implementers
- Annotations
-
- @immutable
Constructors
- Option()
Properties
- byteValue → Uint8Buffer
-
Returns a byte representation of this Option's value.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isLocationOption → bool
-
no setter
- isUriOption → bool
-
no setter
- length → int
-
Gets the value's length in bytes of the option.
no setter
- maxLength → int
-
The maximum length of this Option in bytes.
no setter
- minLength → int
-
The minimum length of this Option in bytes.
no setter
- name → String
-
Gets the name of the option that corresponds to its type.
no setter
-
optionFormat
→ OptionFormat<
T> -
The format of this Option.
no setter
- optionNumber → int
-
The assigned number of this Option.
no setter
- repeatable → bool
-
Indicates if this Option is repeatable, i.e. if it can appear more than
once in a CoAP message.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → OptionType
-
Type
no setter
- valid → bool
-
no setter
- value → T
-
The typed value of this Option.
no setter
- valueString → String
-
Returns a String representation of this Option's value.
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override