MBUploadableElementsFactory class

Used to create MBUploadableElement without specifiyng the locale for every item. The locale is initialized with the factory and passed to all the objects. You can also change the locale and use the same instance of a MBUploadableElementsFactory to create objects with a different locale.

Constructors

MBUploadableElementsFactory(String localeIdentifier)
Initializes a factory with the locale identifier.

Properties

hashCode int
The hash code for this object.
no setterinherited
localeIdentifier String
The locale identifier passed to every objects created.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cerateFilesElement(String name, List<String> filePaths) MBUploadableFilesElement
Creates a files element with a name and the array of path of the files.
createCheckboxElement(String name, bool value) MBUploadableCheckboxElement
Creates a checkbox element with a name, a its value.
createDropdownElement(String name, String value) MBUploadableDropdownElement
Creates a dropdown element with the name of the element, and the value selected.
createFileElement(String name, String filePath) MBUploadableFilesElement
Creates a files element with a name and the path of the file.
createImageElement(String name, String imagePath) MBUploadableImagesElement
Creates an image element with a name, the imagePath, and its mediaType.
createImagesElement(String name, List<String> imagePaths) MBUploadableImagesElement
Creates an images element with a name, a list of paths (imagePaths), and their mediaType.
createMediaElement(String name, String uuid) MBUploadableMediaElement
Creates a media element with a name and a uuid.
createMediaListElement(String name, List<String> uuids) MBUploadableMediaElement
Creates a media element with a name and a list of uuids (uuids).
createMultipleElement(String name, List<String> values) MBUploadableMultipleElement
Creates a multiple element with the name of the element, and the values selected.
createRelationElement(String name, List<int> sectionIds) MBUploadableRelationElement
Creates a relation element with the name of the element, and the sectionIds.
createSlugElement(String slug) MBUploadableTextElement
Creates a slug element with the value of the slug.
createTextElement(String name, String text) MBUploadableTextElement
Creates a text element with a name and some text.
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