SplitPaymentTransactionTile class

A styled transaction tile for displaying individual payment legs in the split payment reconciliation screen.

Based on the SalesTransactionTile anatomy from the merchant app but uses only colorScheme for theming — no Applied* extensions or hardcoded Colors.* values.

Inheritance

Constructors

SplitPaymentTransactionTile({Key? key, required String paymentMethod, required String currencySymbol, required Decimal amount, required DateTime timestamp, String? transactionId, String? description, required bool isSuccess, String? cardType, Widget? leading, VoidCallback? onTap, bool isRefund = false})
const

Properties

amount → Decimal
Payment amount.
final
cardType String?
Optional card type (e.g. 'visa', 'mastercard') used to choose a brand SVG over a generic Material glyph.
final
currencySymbol String
Currency symbol to display (e.g. 'R').
final
description String?
Optional description provided by the cashier.
final
hashCode int
The hash code for this object.
no setterinherited
isRefund bool
Whether this leg represents a refund event. When true, the amount is displayed as negative with error color and a "Refund" badge is shown.
final
isSuccess bool
Whether this payment leg was successful.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Optional leading widget override. When null, the tile builds a PaymentMethodIcon from paymentMethod + cardType.
final
onTap VoidCallback?
Optional tap handler. When provided, the tile becomes interactive and shows a ripple on press.
final
paymentMethod String
The payment method used (e.g. 'Cash', 'Card', 'Mastercard').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Timestamp when the payment was processed.
final
transactionId String?
Optional transaction ID or reference (e.g. '#232').
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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