DivAction class
It defines an action when clicking on an element.
- Available extensions
Constructors
-
DivAction.new({DivDownloadCallbacks? downloadCallbacks, Expression<
bool> isEnabled = const ValueExpression(true), required Expression<String> logId, Expression<Uri> ? logUrl, Obj? payload, Expression<Uri> ? referer, String? scopeId, Expression<DivActionTarget> ? target, DivActionTyped? typed, Expression<Uri> ? url}) -
const
Properties
- downloadCallbacks → DivDownloadCallbacks?
-
Callbacks that are called after data loading.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isEnabled
→ Expression<
bool> -
The parameter disables the action. Disabled actions stop listening to their associated event (clicks, changes in visibility, and so on).
final
-
logId
→ Expression<
String> -
Logging ID.
final
-
logUrl
→ Expression<
Uri> ? -
URL for logging.
final
-
Context menu.
final
- payload → Obj?
-
Additional parameters, passed to the host application.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
referer
→ Expression<
Uri> ? -
Referer URL for logging.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scopeId → String?
-
The ID of the element within which the specified action will be performed.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
target
→ Expression<
DivActionTarget> ? -
The tab in which the URL must be opened.
final
- typed → DivActionTyped?
-
final
-
url
→ Expression<
Uri> ? -
URL. Possible values:
url
ordiv-action://
. To learn more, see Interaction with elements.final
Methods
-
copyWith(
{DivDownloadCallbacks? downloadCallbacks()?, Expression< bool> ? isEnabled, Expression<String> ? logId, Expression<Uri> ? logUrl()?, Obj? payload()?, Expression<Uri> ? referer()?, String? scopeId()?, Expression<DivActionTarget> ? target()?, DivActionTyped? typed()?, Expression<Uri> ? url()?}) → DivAction -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
DivVariableContext context) → DivActionModel -
Available on DivAction, provided by the DivActionConverter extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited