This is the main entry point to manage all the messages features of MBurger.
To use create an instance of MBMessages and add it to the MBManager plugins.
MBManager.shared.plugins = [MBMessages()];
You can pass other options described below in the init method described below.
A Widget that let's you show in-app messages.
To present in-app messages MBMessages uses the showDialog function that needs a BuildContext.
Wrap your main widget in a MBMessagesBuilder to provide a BuildContext automatically to MBMessages.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MBMessagesBuilder(
child: ...,
),
);
}