copyWith method

CognitoAppSyncConfig copyWith({
  1. String? apiUrl,
  2. String? region,
  3. APIAuthorizationType? authMode,
  4. String? apiKey,
  5. String? clientDatabasePrefix,
})

Implementation

CognitoAppSyncConfig copyWith({
  String? apiUrl,
  String? region,
  APIAuthorizationType? authMode,
  String? apiKey,
  String? clientDatabasePrefix,
}) {
  return CognitoAppSyncConfig(
    apiUrl: apiUrl ?? this.apiUrl,
    region: region ?? this.region,
    authMode: authMode ?? this.authMode,
    apiKey: apiKey ?? this.apiKey,
    clientDatabasePrefix: clientDatabasePrefix ?? this.clientDatabasePrefix,
  );
}