LegDisplayPolicy class
Policy-driven filter controlling which payment legs are visible in a given
context. Mirrors the backend LegDisplayFilter for defense-in-depth.
Use LegDisplayPolicy.mobileDefault for the cashier's Payment Details list (Succeeded children only) and LegDisplayPolicy.diagnostic for internal support tooling (everything except phantom artefacts).
Constructors
- LegDisplayPolicy({required bool includeParent, required bool includeFailed, required bool includeCancelled, required bool includePending})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeCancelled → bool
-
final
- includeFailed → bool
-
final
- includeParent → bool
-
final
- includePending → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isDisplayable(
{required String? paymentType, required String eventStatus, required bool isSplitSessionEvent}) → bool - Whether a payment leg summary should be displayed under this policy.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- diagnostic → const LegDisplayPolicy
- Internal diagnostic tooling — everything except phantom artefacts.
- mobileDefault → const LegDisplayPolicy
- Cashier's Payment Details list — Succeeded children only.