ManyToMany constructor

const ManyToMany(
  1. Type through, {
  2. String? localKey,
  3. String? foreignKey,
  4. String? foreignTable,
  5. bool cascadeOnDelete = false,
  6. JoinType? joinType,
})

Implementation

const ManyToMany(this.through,
    {String? localKey,
    String? foreignKey,
    String? foreignTable,
    bool cascadeOnDelete = false,
    JoinType? joinType})
    : super(
          RelationshipType.hasMany, // Many-to-Many is actually just a hasMany
          localKey: localKey,
          foreignKey: foreignKey,
          foreignTable: foreignTable,
          cascadeOnDelete: cascadeOnDelete == true,
          joinType: joinType);