Argument class

An ECoS argument for a request

Syntax: $name | $name[$value] | $name["$value"]

Examples:

  • state
  • state[1]
  • name1["Switch 1"]

Constructors

Argument({@required String name, String value, ArgumentType type = ArgumentType.NATIVE})
Constructs an argument [...]
Argument.fromString(String str)
Parse argument from string [...]
factory
Argument.name(String name)
Constructs an argument of the type NO_VALUE
factory
Argument.native(String name, String value)
Constructs an argument of the type NATIVE
factory
Argument.string(String name, String value)
Constructs an argument of the type STRING
factory

Properties

escapedValue String
If the type is STRING the value is properly escaped
read-only
hashCode int
The hash code for this object. [...]
read-only, override
name String
The name of the argument (option)
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
str String
Returns the ECoS string representation of the an Argument
read-only
type ArgumentType
The type of the parameter
final
value String
The value of the argument (parameter)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override