copyWith method

ApiProperties copyWith({
  1. String? baseUrl,
  2. int? connectTimeout,
  3. int? receiveTimeout,
})

Implementation

ApiProperties copyWith({
  String? baseUrl,
  int? connectTimeout,
  int? receiveTimeout,
}) {
  return new ApiProperties(
    baseUrl: baseUrl ?? this.baseUrl,
    connectTimeout: connectTimeout ?? this.connectTimeout,
    receiveTimeout: receiveTimeout ?? this.receiveTimeout,
  );
}