Transaction class

A single financial transaction.

Constructors

Transaction({required String title, required String amount, required String time, IconData icon = Icons.receipt_long_outlined, bool isCredit = false, String? category, Color? color})
const

Properties

amount → String
Signed amount as a string (e.g. -$42.00).
final
category → String?
Optional category label.
final
color → Color?
Icon tile color.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
Leading icon.
final
isCredit → bool
Whether this is money received (credit).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time → String
Time label.
final
title → String
Transaction title / merchant.
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.
inherited