DigitalWalletScreen class

Screen widget for digital wallet payment processing.

Provides the user interface for Apple Pay and Google Pay transactions. Handles payment flow, user interactions, and communicates results back to the calling application through callback functions.

Features

  • Apple Pay integration on iOS devices
  • Google Pay integration on Android devices
  • Real-time payment status updates
  • Error handling and user feedback
  • Transaction logging and monitoring

Example:

DigitalWalletScreen(
  amount: 100.0,
  terminalId: 'terminal_123',
  currency: 'USD',
  currencyId: 1,
  merchantId: 456,
  transactionId: 'txn_789',
  onResponse: (response) => handlePaymentResponse(response),
  dismissDialog: () => Navigator.pop(context),
  log: (message) => print(message),
)
Inheritance

Constructors

DigitalWalletScreen.new({Key? key, required dynamic onResponse(String), required dynamic dismissDialog(), required dynamic log(String), required double amount, required String terminalId, required String currency, required int currencyId, required int merchantId, required String transactionId})
const

Properties

amount double
final
cubit SaleByDigitalWalletCubit
Returns the BLoC instance associated with this view.
no setterinherited
currency String
final
currencyId int
final
dismissDialog → dynamic Function()
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
log → dynamic Function(String)
final
merchantId int
final
onResponse → dynamic Function(String)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalId String
final
transactionId String
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<DigitalWalletScreen>
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