HRef class

HRef wraps a string reference identifier and optional display name.

See Project Haystack

Inheritance

Constructors

HRef(String val, [String? dis])
factory

Properties

dis String?
Display name for reference or null.
final
hashCode int
Hash code is based on val field only.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
val String
String identifier for reference.
final

Methods

compareTo(Object that) int
Returns sort order as negative, 0, or positive.
inherited
getDis() String
Returns display string which is dis field if non-null, val field otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCode() String
Encodes as '@id'.
toJson() String
Encodes as 'r:
override
toString() String
Returns the val string.
override
toZinc() String
Encodes as '@id
override

Operators

operator ==(Object that) bool
Equals is based on val field only.
override

Static Methods

isId(String id) bool
Returns if the given string is a valid id for a reference.
isIdChar(int ch) bool
Is the given character valid in the identifier part.