of static method

Reaction of({
  1. String? comment,
  2. String? emote,
  3. List<IImageContent>? photos,
  4. List<IVideoContent>? videos,
  5. required IReliveItContact? creator,
  6. required MKey? user,
  7. List<MKey>? chain,
  8. required MKey? content,
})

Implementation

static Reaction of(
    {String? comment,
    String? emote,
    List<IImageContent>? photos,
    List<IVideoContent>? videos,
    required IReliveItContact? creator,
    required MKey? user,
    List<MKey>? chain,
    required MKey? content}) {
  final self =
      Reaction(<String, dynamic>{}, mtype: ReactionRef, update: true);
  if (comment != null) self.comment = comment;
  if (emote != null) self.emote = emote;
  if (photos != null) self.photos = photos;
  if (videos != null) self.videos = videos;
  if (creator != null) self.creator = creator;
  if (user != null) self.user = user;
  if (chain != null) self.chain = chain;
  if (content != null) self.content = content;
  return self;
}