copyWith method
ForeignKeyOption
copyWith({
- ObjectName? foreignTable,
- List<
Ident> ? referredColumns, - Option<
ReferentialAction> ? onDelete, - Option<
ReferentialAction> ? onUpdate,
Returns a new instance by overriding the values passed as arguments
Implementation
ForeignKeyOption copyWith({
ObjectName? foreignTable,
List<Ident>? referredColumns,
Option<ReferentialAction>? onDelete,
Option<ReferentialAction>? onUpdate,
}) =>
ForeignKeyOption(
foreignTable: foreignTable ?? this.foreignTable,
referredColumns: referredColumns ?? this.referredColumns,
onDelete: onDelete != null ? onDelete.value : this.onDelete,
onUpdate: onUpdate != null ? onUpdate.value : this.onUpdate);