BelongsTo class
Represents a one-to-one or one-to-many relationship.
foreignKey: The field on the current entity that holds the ID of the related entity.
localKey: The field on the related entity that the foreignKey points to.
Defaults to 'id'.
For example, a Post entity might have a BelongsTo('userId') to link to a User.
Properties
- foreignKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localKey → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited