MBAutomation constructor
Initializes the plugin with the parameters passed.
@param trackingEnabled If the tracking is enabled, default to true
.
@param eventsTimerTime The frequency used to send events and view to MBurger (in seconds), default 10.
Implementation
MBAutomation({
this.trackingEnabled = true,
int eventsTimerTime = 10,
}) : _eventsTimerTime = eventsTimerTime {
MBAutomationDatabase.initDb();
MBAutomationMessagesManager.startMessageTimer(time: 30);
MBAutomationFlutterPlugin.initializeMethodCall();
MBAutomationTrackingManager.shared.timerTime = eventsTimerTime;
WidgetsBinding.instance.addObserver(this);
}