copyWith method

NativeWidgetOptions copyWith({
  1. String? locale,
  2. String? title,
  3. String? subtitle,
  4. Map<String, Object?>? appearance,
  5. Map<String, Object?>? platform,
  6. bool? reduceMotion,
  7. String? view,
  8. String? articleId,
  9. Map<String, Object?>? context,
  10. List<String>? hostActionIds,
})

Implementation

NativeWidgetOptions copyWith({
  String? locale,
  String? title,
  String? subtitle,
  Map<String, Object?>? appearance,
  Map<String, Object?>? platform,
  bool? reduceMotion,
  String? view,
  String? articleId,
  Map<String, Object?>? context,
  List<String>? hostActionIds,
}) =>
    NativeWidgetOptions(
      locale: locale ?? this.locale,
      title: title ?? this.title,
      subtitle: subtitle ?? this.subtitle,
      appearance: appearance ?? this.appearance,
      platform: platform ?? this.platform,
      reduceMotion: reduceMotion ?? this.reduceMotion,
      view: view ?? this.view,
      articleId: articleId ?? this.articleId,
      context: context ?? this.context,
      hostActionIds: hostActionIds ?? this.hostActionIds,
    );