NexusInAppMessage class

An in-app message the SDK can display (modal / banner / center / fullscreen).

Constructors

NexusInAppMessage({required String id, required String layout, String? title, String? body, String? imageUrl, String? backgroundColor, String? textColor, List<NexusInAppButton> buttons = const [], String? triggerType, String? triggerEvent, int? maxDisplays, bool perSession = false})
const
NexusInAppMessage.fromJson(Map<String, dynamic> j)
factory

Properties

backgroundColor → String?
final
body → String?
final
buttons → List<NexusInAppButton>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
imageUrl → String?
final
layout → String
modal | banner_top | banner_bottom | center | fullscreen.
final
maxDisplays → int?
final
perSession → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textColor → String?
final
title → String?
final
triggerEvent → String?
final
triggerType → String?
session_start | event (null = show on fetch).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited