copyWith method
SupabaseRemoteConfig<T, Id>
copyWith({
- SupabaseClient? client,
- String? table,
- String? idColumn,
- String? updatedAtColumn,
- String? deletedAtColumn,
- String? scopeNameColumn,
- String? scopeKeysColumn,
- Id idOf(
- T
- String idToString(
- Id
- Id idFromString()?,
- Map<
String, dynamic> toJson(- T
- T fromJson()?,
- void onParsePageStats({})?,
- String? serverTimeRpcName,
- SyncScope? defaultScope,
- bool? injectScopeOnWrite,
- Map<
String, dynamic> scopeColumnsBuilder(- SyncScope scope
- SyncScope? scopeForUpsert(
- T item
- SyncScope? scopeForDelete(
- Id id
- Future<
List< searchRunner()?,Map< >String, dynamic> >
Implementation
SupabaseRemoteConfig<T, Id> copyWith({
SupabaseClient? client,
String? table,
String? idColumn,
String? updatedAtColumn,
String? deletedAtColumn,
String? scopeNameColumn,
String? scopeKeysColumn,
Id Function(T)? idOf,
String Function(Id)? idToString,
Id Function(String)? idFromString,
Map<String, dynamic> Function(T)? toJson,
T Function(Map<String, dynamic>)? fromJson,
void Function({required int skipped, required int total})? onParsePageStats,
String? serverTimeRpcName,
SyncScope? defaultScope,
bool? injectScopeOnWrite,
Map<String, dynamic> Function(SyncScope scope)? scopeColumnsBuilder,
SyncScope? Function(T item)? scopeForUpsert,
SyncScope? Function(Id id)? scopeForDelete,
Future<List<Map<String, dynamic>>> Function(SupabaseSearchRequest plan)?
searchRunner,
}) {
return SupabaseRemoteConfig<T, Id>(
client: client ?? this.client,
table: table ?? this.table,
idColumn: idColumn ?? this.idColumn,
updatedAtColumn: updatedAtColumn ?? this.updatedAtColumn,
deletedAtColumn: deletedAtColumn ?? this.deletedAtColumn,
scopeNameColumn: scopeNameColumn ?? this.scopeNameColumn,
scopeKeysColumn: scopeKeysColumn ?? this.scopeKeysColumn,
idOf: idOf ?? this.idOf,
idToString: idToString ?? this.idToString,
idFromString: idFromString ?? this.idFromString,
toJson: toJson ?? this.toJson,
fromJson: fromJson ?? this.fromJson,
onParsePageStats: onParsePageStats ?? this.onParsePageStats,
serverTimeRpcName: serverTimeRpcName ?? this.serverTimeRpcName,
defaultScope: defaultScope ?? this.defaultScope,
injectScopeOnWrite: injectScopeOnWrite ?? this.injectScopeOnWrite,
scopeColumnsBuilder: scopeColumnsBuilder ?? this.scopeColumnsBuilder,
scopeForUpsert: scopeForUpsert ?? this.scopeForUpsert,
scopeForDelete: scopeForDelete ?? this.scopeForDelete,
searchRunner: searchRunner ?? this.searchRunner,
);
}