MBInAppMessage class
This class represents an in app message retrieved by the MBurger in app messages APIs
Constructors
-
MBInAppMessage({required int id, required MBInAppMessageStyle style, required bool isBlocking, required double duration, required String? title, required Color? titleColor, required String? body, required Color? bodyColor, required String? image, required Color? backgroundColor, required List<
MBInAppMessageButton> ? buttons}) - Initializes a message with the parameters passed
-
MBInAppMessage.fromDictionary(Map<
String, dynamic> dictionary) -
Initializes a message with the dictionary returned by the APIs.
factory
Properties
- backgroundColor → Color?
-
An optional background color, defaults to
null
.final - body → String?
-
The body of the message
final
- bodyColor → Color?
-
An optional color for the body, defaults to
null
.final -
An array of buttons, max 2 elements
final
- duration → double
-
The duration it will be on screen, after this duration the message will disappear automatically, by default it stays on screen until the user closes it
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The id of the message
final
- image → String?
-
An optional image of the message, defaults to
null
.final - isBlocking → bool
-
If the message should block the user when navigating the app.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → MBInAppMessageStyle
-
The style of the message
final
- title → String?
-
The title of the message, it's optional and defaults to
null
.final - titleColor → Color?
-
An optional color for the title, defaults to
null
.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