HDictBuilder class
HDictBuilder is used to construct an immutable HDict instance.
See Project Haystack.
Constructors
Properties
Methods
-
add(
String name, [Object? val, String? unit]) → HDictBuilder - Adds tag name and value, returns this.
-
addDict(
HDict dict) → void - Adds all the name/value pairs in given HDict.
-
get(
String name, [bool checked = true]) → HVal? - Returns a tag by name.
-
has(
String name) → bool - Returns if the given tag is present.
-
isEmpty(
) → bool - /////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// Returns if size is zero.
-
missing(
String name) → bool - Returns if the given tag is not present.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDict(
) → HDict - Converts current state to an immutable HDict instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited