MBAdmin class
The manager of the MBAdmin section, you will use this class to create, edit or delete data in MBurger.
Constructors
Properties
Methods
-
addSectionToBlock(
int blockId, List< MBUploadableElement> elements, {MBAdminPushSettings? pushSettings, MBAdminVisibilitySettings? visibilitySettings}) → Future<void> - Adds a section to a block.
-
deleteMedia(
int mediaId) → Future< void> - Deletes a media (image or file).
-
deleteSection(
int sectionId) → Future< void> - Deletes a section.
-
editSection(
int sectionId, List< MBUploadableElement> elements, {MBAdminPushSettings? pushSettings, MBAdminVisibilitySettings? visibilitySettings}) → Future<void> - Edits a section, this API will change only the elements passed, elements that are not passed will remain untouched.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadMedia(
String path) → Future< MBMedia?> - Uploads a media to the media center of MBurger
-
uploadMediaList(
List< String> paths) → Future<List< MBMedia> > - Uploads an array of media to the media center of MBurger
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
The singleton that manages all the MBAdmin part of MBurger.
no setter