MyoroModalConfiguration<T> class
Model to store the configuration members of MyoroModal that may be altered within other modals to not repeat the members.
- Implementers
- Annotations
-
- @immutable
- @myoroModel
Constructors
-
MyoroModalConfiguration.new({bool barrierDismissable = barrierDismissableDefaultValue, MyoroModalOnClosed<
T> ? onClosed, String title = titleDefaultValue, bool showCloseButton = showCloseButtonDefaultValue}) -
const
- MyoroModalConfiguration.fake()
Properties
- barrierDismissable → bool
-
If you click everywhere but the modal, it closes
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onClosed
→ MyoroModalOnClosed<
T> ? -
Function executed when the modal is closed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
self
→ MyoroModalConfiguration<
T> -
no setterinherited
- showCloseButton → bool
-
If
_CloseButton
will be shown.final - title → String
-
Title of the modal.
final
-
Whether or not the MyoroModal should attach to the root Navigator of the Widget tree.
Setting this to false is useful for cases when you need to utilize, for example,
Bloc
s that are defined in a specific place. Thus, you avoid the pessimization of globally scoping objects.final
Methods
-
copyWith(
{bool? barrierDismissable, MyoroModalOnClosed< T> ? onClosed, bool onClosedProvided = true, String? title, bool? showCloseButton}) → MyoroModalConfiguration<T> -
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
- barrierDismissableDefaultValue → const bool
- showCloseButtonDefaultValue → const bool
- titleDefaultValue → const String