BankConsentManagementList class
Granted data-sharing consents with revocation: the
ongoing-management counterpart to BankConsentModal's one-shot
acceptance, covering the PSD2 / open-banking consent dashboard.
Each consent renders as a card with the grantee emblem, scope chips (three visible, the rest behind an expander), grant/expiry line (warning-tinted when expiring within 14 days), and a danger revoke action behind a confirmation dialog. Revoked consents stay in the list struck-through for audit visibility.
BankConsentManagementList(
consents: consents,
onRevoke: (id) => api.revokeConsent(id),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BankConsentManagementList
Constructors
-
BankConsentManagementList({required List<
BankConsent> consents, required Future<bool> onRevoke(String consentId), Key? key, VoidCallback? onLearnMore, Widget? emptyState, String revokeLabel = 'Revoke access', String revokeConfirmTitle = 'Revoke access?', String revokeConfirmBody = 'This app immediately loses access to your data.', String cancelLabel = 'Cancel', String grantedPrefix = 'Granted', String expiresPrefix = 'expires', String revokedLabel = 'Revoked', String expiredLabel = 'Expired', String expiringSoonLabel = 'Expiring soon', String activeLabel = 'Active', String moreScopesSuffix = 'more', String emptyTitle = 'No connected apps', String emptySubtitle = 'Apps you allow to access your account data appear here.', String learnMoreLabel = 'How data sharing works', EdgeInsetsGeometry? itemMargin, EdgeInsetsGeometry? cardPadding, BorderRadius? cardRadius, Color? cardColor, List<BoxShadow> ? cardShadow, TextStyle? titleStyle, TextStyle? subtitleStyle, Duration? animationDuration, Curve? animationCurve}) -
const
Properties
- activeLabel → String
-
final
- animationCurve → Curve?
-
Curve of the scope expander resize. Defaults to
BankTokens.curveStandard.
final
- animationDuration → Duration?
-
Duration of the scope expander resize. Defaults to
BankTokens.durationBase.
final
- cancelLabel → String
-
final
- cardColor → Color?
-
Fill of each consent card. Defaults to the theme surface.
final
- cardPadding → EdgeInsetsGeometry?
-
Inner padding of each consent card. Defaults to
BankTokens.space4 on all sides.
final
- cardRadius → BorderRadius?
-
Corner radius of each consent card. Defaults to the theme
cardRadius.
final
-
cardShadow
→ List<
BoxShadow> ? -
Shadow of each consent card. Defaults to BankTokens.shadowCard;
pass
const []to flatten.final -
consents
→ List<
BankConsent> -
final
- emptyState → Widget?
-
Overrides the default
BankEmptyStateView.final - emptySubtitle → String
-
final
- emptyTitle → String
-
final
- expiredLabel → String
-
final
- expiresPrefix → String
-
final
- expiringSoonLabel → String
-
final
- grantedPrefix → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemMargin → EdgeInsetsGeometry?
-
Outer margin around each consent card. Defaults to
BankTokens.space4 horizontal and BankTokens.space2 vertical.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- learnMoreLabel → String
-
Label of the onLearnMore button. Defaults to
'How data sharing works'.
final
- moreScopesSuffix → String
-
final
- onLearnMore → VoidCallback?
-
final
-
onRevoke
→ Future<
bool> Function(String consentId) -
Revokes on the backend; return
trueon success.final - revokeConfirmBody → String
-
final
- revokeConfirmTitle → String
-
final
- revokedLabel → String
-
final
- revokeLabel → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitleStyle → TextStyle?
-
Merged over the computed granted/expiry line style (bodySmall).
final
- titleStyle → TextStyle?
-
Merged over the computed grantee name style (bodyLarge).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< BankConsentManagementList> -
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