copyWith method

Options copyWith({
  1. Filter? filter,
  2. Color? titleTextColor,
  3. Color? promptTextColor,
  4. Color? closeButtonTintColor,
  5. Image? closeButtonImage,
  6. String? title,
  7. String? fontPath,
  8. Image? logoImage,
  9. Color? promptBackgroundColor,
  10. bool? promptRoundedCorners,
  11. Color? surroundColor,
  12. List<String>? certificates,
  13. Duration? timeout,
  14. bool? enableScreenshots,
  15. Orientation? orientation,
  16. Camera? camera,
  17. Color? headerBackgroundColor,
  18. bool? disableExteriorEffects,
  19. GenuinePresenceAssuranceOptions? genuinePresenceAssurance,
  20. LivenessAssuranceOptions? livenessAssurance,
})

Implementation

Options copyWith({
  Filter? filter,
  Color? titleTextColor,
  Color? promptTextColor,
  Color? closeButtonTintColor,
  Image? closeButtonImage,
  String? title,
  String? fontPath,
  Image? logoImage,
  Color? promptBackgroundColor,
  bool? promptRoundedCorners,
  Color? surroundColor,
  List<String>? certificates,
  Duration? timeout,
  bool? enableScreenshots,
  Orientation? orientation,
  Camera? camera,
  Color? headerBackgroundColor,
  bool? disableExteriorEffects,
  GenuinePresenceAssuranceOptions? genuinePresenceAssurance,
  LivenessAssuranceOptions? livenessAssurance,
}) =>
    Options(
      filter: filter ?? this.filter,
      titleTextColor: titleTextColor ?? this.titleTextColor,
      promptTextColor: promptTextColor ?? this.promptTextColor,
      closeButtonTintColor: closeButtonTintColor ?? this.closeButtonTintColor,
      closeButtonImage: closeButtonImage ?? this.closeButtonImage,
      title: title ?? this.title,
      fontPath: fontPath ?? this.fontPath,
      logoImage: logoImage ?? this.logoImage,
      promptBackgroundColor: promptBackgroundColor ?? this.promptBackgroundColor,
      promptRoundedCorners: promptRoundedCorners ?? this.promptRoundedCorners,
      surroundColor: surroundColor ?? this.surroundColor,
      certificates: certificates ?? this.certificates,
      timeout: timeout ?? this.timeout,
      enableScreenshots: enableScreenshots ?? this.enableScreenshots,
      orientation: orientation ?? this.orientation,
      camera: camera ?? this.camera,
      headerBackgroundColor: headerBackgroundColor ?? this.headerBackgroundColor,
      disableExteriorEffects: disableExteriorEffects ?? this.disableExteriorEffects,
      genuinePresenceAssurance: genuinePresenceAssurance ?? this.genuinePresenceAssurance,
      livenessAssurance: livenessAssurance ?? this.livenessAssurance,
    );