MBAdminVisibilitySettings class

This object is used to visibility of a section when creating or updating it.

Constructors

MBAdminVisibilitySettings({required MBAdminVisibility visibility, DateTime? availableAt})
Initializes the visibility settings with a visibility and the date of availability, in case the visibility is MBAdminVisibility.scheduled`.
MBAdminVisibilitySettings.draft()
Creates and initializes a MBAdminVisibilitySettings with the draft option
factory
MBAdminVisibilitySettings.scheduled(DateTime date)
Creates and initializes a MBAdminVisibilitySettings with the scheduled option and the availability date.
factory
MBAdminVisibilitySettings.visible()
Creates and initializes a MBAdminVisibilitySettings with the visible option
factory

Properties

availableAt → DateTime?
If the visibiity is scheduled, the date the section will be published, for other visibilities it's ignored.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
visibility → MBAdminVisibility
The visibility of the section.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toForm() → List<MBMultipartForm>?
Converts this object to a list of multipart forms
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited