MBAutomationDatabase class
The class that manages the automation DB that stores views and events tracked.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
deleteEvents(
List< MBAutomationEvent> events) → Future<void> - Deletes the events from the DB. @param views An array of events to delete.
-
deleteViews(
List< MBAutomationView> views) → Future<void> - Deletes the views from the DB. @param views An array of views to delete.
-
events(
) → Future< List< MBAutomationEvent> ?> - Fetches the events saved in the DB. @returns A Future that completes whit the events retrieved from the DB.
-
initDb(
) → Future< void> - Initializes the DB and tables.
-
saveEvent(
MBAutomationEvent event) → Future< void> - Saves an event in the DB. @param event The event to save.
-
saveView(
MBAutomationView view) → Future< void> - Saves a view in the DB. @param view The view to save.
-
views(
) → Future< List< MBAutomationView> ?> - Fetches the views saved in the DB. @returns A Future that completes whit the views retrieved from the DB.