Modal class
Provides easy modal functionality.
Displays a message modal that allows only one action with alert.
Displays a message modal with two possible actions at confirm.
簡単なモーダルの機能を提供します。
alertでアクションを1つだけ可能なメッセージモーダルを表示します。
confirmでアクションを2つ実行可能なメッセージモーダルを表示します。
- Available Extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
alert(
BuildContext context, {required String submitText, Color? backgroundColor, Color? color, required String title, required String text, VoidCallback? onSubmit, bool disableBackKey = false, bool popOnPress = true, bool willShowRepetition = false}) → Future< void> - Displays a message modal with only one possible action.
-
confirm(
BuildContext context, {Color? backgroundColor, Color? color, required String submitText, required String cancelText, required String title, required String text, VoidCallback? onSubmit, VoidCallback? onCancel, bool popOnPress = true, bool willShowRepetition = false}) → Future< bool> - Displays a message modal that can perform two actions.
-
show(
BuildContext context, {Color? backgroundColor, Color? color, required String title, required List< Widget> builder(VoidCallback onClose), bool disableBackKey = false, bool popOnPress = true, bool willShowRepetition = false}) → Future<void> -
Give
builder
to display the modal.