mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
12 lines
383 B
Dart
12 lines
383 B
Dart
class IoniaTip {
|
|
const IoniaTip({this.originalAmount, this.percentage});
|
|
final double originalAmount;
|
|
final double percentage;
|
|
double get additionalAmount => originalAmount * percentage / 100;
|
|
|
|
static const tipList = [
|
|
IoniaTip(originalAmount: 0, percentage: 0),
|
|
IoniaTip(originalAmount: 10, percentage: 10),
|
|
IoniaTip(originalAmount: 20, percentage: 20)
|
|
];
|
|
}
|