MBAdmin class

The manager of the MBAdmin section, you will use this class to create, edit or delete data in MBurger.

Constructors

MBAdmin({required MBManager manager})
Initializer an MBAdmin instance with a manager.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
manager MBManager
The manager used to make API calls.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

shared MBAdmin
The singleton that manages all the MBAdmin part of MBurger.
no setter