copyWith method

  1. @override
UpdateDefaultReactionType copyWith({
  1. ReactionType? reactionType,
  2. dynamic extra,
  3. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateDefaultReactionType copyWith({
  ReactionType? reactionType,
  dynamic extra,
  int? clientId,
}) => UpdateDefaultReactionType(
  reactionType: reactionType ?? this.reactionType,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);