copyWith method
EnsembleTestConfig
copyWith({
- ExecutionMode? mode,
- List<
TestServiceConfig> ? services, - List<
String> ? mockFiles, - Map<
String, dynamic> ? inlineMocks, - Map<
String, dynamic> ? initialState, - String? defaultProfile,
- Map<
String, TestProfile> ? profiles, - Map<
String, List< ? profileGroups,String> > - List<
TestDeviceTarget> ? devices, - ScreenshotConfig? screenshots,
- PerformanceConfig? performance,
- LogApiCallsConfig? logApiCalls,
- LogStorageConfig? logStorage,
- TimerRewriteConfig? timers,
- WifiTestConfig? wifi,
Implementation
EnsembleTestConfig copyWith({
ExecutionMode? mode,
List<TestServiceConfig>? services,
List<String>? mockFiles,
Map<String, dynamic>? inlineMocks,
Map<String, dynamic>? initialState,
String? defaultProfile,
Map<String, TestProfile>? profiles,
Map<String, List<String>>? profileGroups,
List<TestDeviceTarget>? devices,
ScreenshotConfig? screenshots,
PerformanceConfig? performance,
LogApiCallsConfig? logApiCalls,
LogStorageConfig? logStorage,
TimerRewriteConfig? timers,
WifiTestConfig? wifi,
}) {
return EnsembleTestConfig(
mode: mode ?? this.mode,
services: services ?? this.services,
mockFiles: mockFiles ?? this.mockFiles,
inlineMocks: inlineMocks ?? this.inlineMocks,
initialState: initialState ?? this.initialState,
defaultProfile: defaultProfile ?? this.defaultProfile,
profiles: profiles ?? this.profiles,
profileGroups: profileGroups ?? this.profileGroups,
devices: devices ?? this.devices,
screenshots: screenshots ?? this.screenshots,
performance: performance ?? this.performance,
logApiCalls: logApiCalls ?? this.logApiCalls,
logStorage: logStorage ?? this.logStorage,
timers: timers ?? this.timers,
wifi: wifi ?? this.wifi,
);
}