BankCategoryBlock class

A single merchant-category self-exclusion entry rendered by BankMerchantBlockList.

unblockCoolOff marks categories (typically gambling) whose unblock takes effect only after a regulatory cool-off delay. While an unblock is pending, coolOffEndsAt holds the moment the block actually lifts.

Annotations

Constructors

BankCategoryBlock({required String id, required String label, required IconData icon, required bool blocked, Duration? unblockCoolOff, DateTime? coolOffEndsAt})
Creates an immutable category block entry.
const

Properties

blocked bool
Whether spending in this category is currently blocked.
final
coolOffEndsAt DateTime?
When a confirmed unblock actually lifts. While this is in the future the row renders in a pending state.
final
hashCode int
The hash code for this object.
no setteroverride
icon IconData
Category glyph rendered on a tinted tile at the row start.
final
id String
Stable identifier passed back through the change callback.
final
label String
Display name of the category, e.g. 'Gambling'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unblockCoolOff Duration?
Delay before an unblock takes effect (e.g. 48 hours for gambling). null means unblocking is instant.
final

Methods

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.
override