copyWith method

  1. @override
PlatformGoldensConfig copyWith({
  1. Set<HostPlatform>? platforms,
  2. bool? enabled,
  3. bool? obscureText,
  4. bool? renderShadows,
  5. FilePathResolver? filePathResolver,
  6. 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,
  );
}