of static method
Reaction
of(
{
- String? emote,
- List<IImageContent>? photos,
- List<IVideoContent>? videos,
- required IReliveItContact? creator,
- required MKey? user,
- List<MKey>? chain,
- 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;
}