BankFamilyMemberCard class

Immutable description of a dependent (child or teen) card member as rendered by BankFamilyCardTile.

Instances are value objects: two members with identical fields compare equal, which lets list diffing and rebuild checks work cheaply.

Annotations

Constructors

BankFamilyMemberCard({required String id, required String memberName, required String cardLast4, required Money spendLimit, required Money spentThisPeriod, int? age, bool frozen = false, bool notificationsOnSpend = false})
const

Properties

age int?
Age shown in a small chip next to the name. Hidden when null.
final
cardLast4 String
Last four digits of the member's card number.
final
frozen bool
Whether the member's card is currently frozen.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier of the family member.
final
memberName String
Display name of the member, also used for the emblem initials.
final
notificationsOnSpend bool
Whether the guardian is notified on every spend from this card.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spendLimit Money
Spending cap for the current period.
final
spentThisPeriod Money
Amount already spent in the current period.
final

Methods

copyWith({String? id, String? memberName, int? age, String? cardLast4, Money? spendLimit, Money? spentThisPeriod, bool? frozen, bool? notificationsOnSpend}) BankFamilyMemberCard
Returns a copy with the given fields replaced.
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