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
nameand the array ofpathof the files. -
createCheckboxElement(
String name, bool value) → MBUploadableCheckboxElement -
Creates a checkbox element with a
name, a itsvalue. -
createDropdownElement(
String name, String value) → MBUploadableDropdownElement -
Creates a dropdown element with the
nameof the element, and thevalueselected. -
createFileElement(
String name, String filePath) → MBUploadableFilesElement -
Creates a files element with a
nameand thepathof the file. -
createImageElement(
String name, String imagePath) → MBUploadableImagesElement -
Creates an image element with a
name, theimagePath, and itsmediaType. -
createImagesElement(
String name, List< String> imagePaths) → MBUploadableImagesElement -
Creates an images element with a
name, a list of paths (imagePaths), and theirmediaType. -
createMediaElement(
String name, String uuid) → MBUploadableMediaElement -
Creates a media element with a
nameand auuid. -
createMediaListElement(
String name, List< String> uuids) → MBUploadableMediaElement -
Creates a media element with a
nameand a list of uuids (uuids). -
createMultipleElement(
String name, List< String> values) → MBUploadableMultipleElement -
Creates a multiple element with the
nameof the element, and thevaluesselected. -
createRelationElement(
String name, List< int> sectionIds) → MBUploadableRelationElement -
Creates a relation element with the
nameof the element, and thesectionIds. -
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
nameand sometext. -
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