feat: add alot
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import 'tab_item_purchase.dart';
|
||||
import '../utils/collection_utils.dart';
|
||||
|
||||
class TabItem {
|
||||
final String id;
|
||||
@@ -22,14 +23,6 @@ class TabItem {
|
||||
|
||||
int get lineTotalInCents => quantity * unitPriceInCents;
|
||||
|
||||
String get formattedLineTotal {
|
||||
return '€${(lineTotalInCents / 100).toStringAsFixed(2)}';
|
||||
}
|
||||
|
||||
String get formattedUnitPrice {
|
||||
return '€${(unitPriceInCents / 100).toStringAsFixed(2)}';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
|
||||
Reference in New Issue
Block a user