JsPromptResponse class
JsPromptResponse class represents the response used by the onJsPrompt
event to control a JavaScript prompt dialog.
Constructors
- JsPromptResponse.handled(JsPromptResponseAction action, String value)
-
factory
- JsPromptResponse.prompt(String message, String defaultValue, String okLabel, String cancelLabel)
-
factory
Properties
- action → JsPromptResponseAction?
-
Action used to confirm that the user hit confirm or cancel button.
final
- cancelLabel → String?
-
Title of the cancel button.
final
- defaultValue → String?
-
The default value displayed in the prompt dialog.
final
- handledByClient → bool
-
Whether the client will handle the prompt dialog.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Message to be displayed in the window.
final
- okLabel → String?
-
Title of the confirm button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String?
-
Value of the prompt dialog.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited