FastOperationControlledDialog class

This widget manages and displays various states of an operation.

It handles operations such as verifying and granting rights, as well as managing various visual states.

Inheritance

Constructors

FastOperationControlledDialog.new({Key? key, required FutureBoolCallback onCreateOperation, required WidgetBuilder intialBuilder, FastOperationStatusChanged? onOperationStatusChanged, String? onGetAlternativeText(FastOperationStatus)?, FutureBoolCallback? onGrantRights, FutureBoolCallback? onVerifyRights, WidgetBuilder? verifyingRightsBuilder, WidgetBuilder? missingRightsBuilder, WidgetBuilder? grantingRightsBuilder, WidgetBuilder? rightsDeniedBuillder, WidgetBuilder? operationInProgressBuilder, WidgetBuilder? operationSucceededBuilder, WidgetBuilder? operationFailedBuilder, FastOperationStatusChanged? onAlternativeAction, String? onGetValidText(FastOperationStatus)?, Widget errorBuilder(BuildContext context, dynamic error)?, String? onGetCancelText(FastOperationStatus)?, String? onGetTitleText(FastOperationStatus)?, FastOperationStatusChanged? onCancel, FastOperationStatusChanged? onValid, double? tabletWidthFactor = 0.6})
Constructs a FastOperationControlledDialog.
const

Properties

errorBuilder Widget Function(BuildContext context, dynamic error)?
Builder for the error state.
final
grantingRightsBuilder WidgetBuilder?
Builder for the granting rights state.
final
hashCode int
The hash code for this object.
no setterinherited
intialBuilder WidgetBuilder
Builder for the initial state.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
missingRightsBuilder WidgetBuilder?
Builder for the missing rights state.
final
onAlternativeAction FastOperationStatusChanged?
Callback for when the alternative button is tapped.
final
onCancel FastOperationStatusChanged?
Callback for when the cancel button is tapped.
final
onCreateOperation FutureBoolCallback
Callback to create an operation.
final
onGetAlternativeText String? Function(FastOperationStatus)?
Function to retrieve alternative text based on operation status.
final
onGetCancelText String? Function(FastOperationStatus)?
Function to retrieve cancel text based on operation status.
final
onGetTitleText String? Function(FastOperationStatus)?
Function to retrieve title text based on operation status.
final
onGetValidText String? Function(FastOperationStatus)?
Function to retrieve valid text based on operation status.
final
onGrantRights FutureBoolCallback?
Callback to grant rights.
final
onOperationStatusChanged FastOperationStatusChanged?
Callback triggered when the operation status changes.
final
onValid FastOperationStatusChanged?
Callback for when the valid button is tapped.
final
onVerifyRights FutureBoolCallback?
Callback to verify rights.
final
operationFailedBuilder WidgetBuilder?
Builder for the operation failed state.
final
operationInProgressBuilder WidgetBuilder?
Builder for the operation in progress state.
final
operationSucceededBuilder WidgetBuilder?
Builder for the operation succeeded state.
final
rightsDeniedBuillder WidgetBuilder?
Builder for the rights denied state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabletWidthFactor double
final
verifyingRightsBuilder WidgetBuilder?
Builder for the verifying rights state.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() FastOperationControlledDialogState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited