MagicStarterModalPresentation enum
How every modal the starter opens is presented.
Values
- dialog → const MagicStarterModalPresentation
-
A centered dialog at every width, capped at MagicStarterModalTheme.maxWidth. The default.
- sheet → const MagicStarterModalPresentation
-
A bottom sheet at every width, capped by Flutter's Material 3 sheet width (640 px) on a wide screen.
MSBottomSheet.show(dialogBreakpoint:)then never swaps to a dialog. - adaptive → const MagicStarterModalPresentation
-
A bottom sheet below MagicStarterModalTheme.dialogBreakpoint and a centered dialog, capped at MagicStarterModalTheme.maxWidth, from it: a phone gets the sheet and a desktop window the dialog from one setting. The width is read when a modal is opened, so one already open keeps the form it opened in.
MSBottomSheet.show(dialogBreakpoint:)is ignored: the theme's breakpoint governs every modal.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
MagicStarterModalPresentation> - A constant List of the values in this enum, in order of their declaration.