copyWith method

AutoUpdaterConfig copyWith({
  1. String? baseUrl,
  2. String? versionPath,
  3. String? appId,
  4. String? environment,
  5. bool? releaseHubMode,
  6. bool? checkOnStartup,
  7. Duration? startupDelay,
  8. bool? skipPermissionCheck,
  9. bool? isDisabled,
  10. String? apkFilenamePattern,
  11. bool? includeArchitecture,
  12. Map<String, String>? httpHeaders,
  13. Duration? connectionTimeout,
  14. VersionResponseFields? responseFields,
  15. void logger(
    1. String message
    )?,
})

Creates a copy with modified values

Implementation

AutoUpdaterConfig copyWith({
  String? baseUrl,
  String? versionPath,
  String? appId,
  String? environment,
  bool? releaseHubMode,
  bool? checkOnStartup,
  Duration? startupDelay,
  bool? skipPermissionCheck,
  bool? isDisabled,
  String? apkFilenamePattern,
  bool? includeArchitecture,
  Map<String, String>? httpHeaders,
  Duration? connectionTimeout,
  VersionResponseFields? responseFields,
  void Function(String message)? logger,
}) {
  return AutoUpdaterConfig(
    baseUrl: baseUrl ?? this.baseUrl,
    versionPath: versionPath ?? this.versionPath,
    appId: appId ?? this.appId,
    environment: environment ?? this.environment,
    releaseHubMode: releaseHubMode ?? this.releaseHubMode,
    checkOnStartup: checkOnStartup ?? this.checkOnStartup,
    startupDelay: startupDelay ?? this.startupDelay,
    skipPermissionCheck: skipPermissionCheck ?? this.skipPermissionCheck,
    isDisabled: isDisabled ?? this.isDisabled,
    apkFilenamePattern: apkFilenamePattern ?? this.apkFilenamePattern,
    includeArchitecture: includeArchitecture ?? this.includeArchitecture,
    httpHeaders: httpHeaders ?? this.httpHeaders,
    connectionTimeout: connectionTimeout ?? this.connectionTimeout,
    responseFields: responseFields ?? this.responseFields,
    logger: logger ?? this.logger,
  );
}