copyWith method
PlatformGoldensConfig
copyWith({
- Set<
HostPlatform> ? platforms, - bool? enabled,
- bool? obscureText,
- bool? renderShadows,
- FilePathResolver? filePathResolver,
- ThemeData? theme,
override
Creates a copy of this GoldensConfig and replaces the given fields.
Implementation
@override
PlatformGoldensConfig copyWith({
Set<HostPlatform>? platforms,
bool? enabled,
bool? obscureText,
bool? renderShadows,
FilePathResolver? filePathResolver,
ThemeData? theme,
}) {
return PlatformGoldensConfig(
platforms: platforms ?? this.platforms,
enabled: enabled ?? this.enabled,
obscureText: obscureText ?? this.obscureText,
renderShadows: renderShadows ?? this.renderShadows,
filePathResolver: filePathResolver ?? this.filePathResolver,
theme: theme ?? this.theme,
);
}