of static method
PushContentBody
of({
- String? type,
- required IPushDisplayType? displayType,
- List<
IContent> ? blocks, - String? title,
- IIconInfo? image,
- List<
IButtonContent> ? actions, - 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;
}