Relation<A extends Model, B extends Model> class

Constructors

Relation({required RelationType type, required String id})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RelationType
final

Methods

a() Type
b() Type
belongsTo(A model) Future
B
handle(dynamic model) Future
hasMany(A model) Future<List<B>>
hasOne(A model) Future<B?>
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