MBAdmin class Null safety

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent 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.
read-only