copyWith method

ThreadsViewArguments copyWith({
  1. ChatUIKitProfile? profile,
  2. bool? enableAppBar,
  3. ChatUIKitAppBarModel? appBarModel,
  4. String? attributes,
  5. ChatUIKitViewObserver? viewObserver,
  6. ChatUIKitAppBarActionsBuilder? appBarTrailingActionsBuilder,
})

Implementation

ThreadsViewArguments copyWith({
  ChatUIKitProfile? profile,
  bool? enableAppBar,
  ChatUIKitAppBarModel? appBarModel,
  String? attributes,
  ChatUIKitViewObserver? viewObserver,
  ChatUIKitAppBarActionsBuilder? appBarTrailingActionsBuilder,
}) {
  return ThreadsViewArguments(
    profile: profile ?? this.profile,
    enableAppBar: enableAppBar ?? this.enableAppBar,
    appBarModel: appBarModel ?? this.appBarModel,
    attributes: attributes ?? this.attributes,
    viewObserver: viewObserver ?? this.viewObserver,
  );
}