Relationship class
This class models a reference to a personal relationship.
- Implemented types
- Annotations
Constructors
- Relationship({required String label, required String name})
-
A reference to a personal relationship.
const
-
Relationship.fromMap(Map<
String, dynamic> map) -
Creates a
Relationship
instance starting from aMap<String, dynamic> map
.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String
-
The relationship label. It is useful for distinguishing different
relationships that belong to the same person.
final
- name → String
-
The name of the person with whom the relationship is established.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
covariant Relationship other) → int -
The order of the comparisons is:
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Creates a
Map<String, dynamic> map
representation of this instance. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator <(
covariant Relationship other) → bool -
Returns if this instance is less than the
other
. -
operator <=(
covariant Relationship other) → bool -
Return if this instance is less than or equal to the
other
. -
operator ==(
covariant Relationship other) → bool -
The equality operator.
override
-
operator >(
covariant Relationship other) → bool -
Return if this instance is greater than the
other
. -
operator >=(
covariant Relationship other) → bool -
Return if this instance is greater than or equal to the
other
.