MBInAppMessage constructor

MBInAppMessage({
  1. required int id,
  2. required MBInAppMessageStyle style,
  3. required bool isBlocking,
  4. required double duration,
  5. required String? title,
  6. required Color? titleColor,
  7. required String? body,
  8. required Color? bodyColor,
  9. required String? image,
  10. required Color? backgroundColor,
  11. required List<MBInAppMessageButton>? buttons,
})

Initializes a message with the parameters passed

Implementation

MBInAppMessage({
  required this.id,
  required this.style,
  required this.isBlocking,
  required this.duration,
  required this.title,
  required this.titleColor,
  required this.body,
  required this.bodyColor,
  required this.image,
  required this.backgroundColor,
  required this.buttons,
});