of static method

PushContentBody of({
  1. String? type,
  2. required IPushDisplayType? displayType,
  3. List<IContent>? blocks,
  4. String? title,
  5. IIconInfo? image,
  6. List<IButtonContent>? actions,
  7. bool? showLargeTitle = false,
})
override

Implementation

static PushContentBody of(
    {String? type,
    required IPushDisplayType? displayType,
    List<IContent>? blocks,
    String? title,
    IIconInfo? image,
    List<IButtonContent>? actions,
    bool? showLargeTitle = false}) {
  final self = PushContentBody(<String, dynamic>{},
      mtype: PushContentBodyRef, update: true);
  if (type != null) self.type = type;
  if (displayType != null) self.displayType = displayType;
  if (blocks != null) self.blocks = blocks;
  if (title != null) self.title = title;
  if (image != null) self.image = image;
  if (actions != null) self.actions = actions;
  if (showLargeTitle != null) self.showLargeTitle = showLargeTitle;
  return self;
}