Fixed compilation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:pshared/models/describable.dart';
|
||||
import 'package:pshared/models/ledger/balance.dart';
|
||||
|
||||
|
||||
class LedgerAccount implements Describable {
|
||||
@@ -15,6 +16,7 @@ class LedgerAccount implements Describable {
|
||||
final DateTime? createdAt;
|
||||
final DateTime? updatedAt;
|
||||
final Describable describable;
|
||||
final LedgerBalance? balance;
|
||||
|
||||
@override
|
||||
String get name => describable.name;
|
||||
@@ -36,6 +38,7 @@ class LedgerAccount implements Describable {
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
required this.describable,
|
||||
this.balance,
|
||||
});
|
||||
|
||||
LedgerAccount copyWith({
|
||||
@@ -54,5 +57,6 @@ class LedgerAccount implements Describable {
|
||||
createdAt: createdAt,
|
||||
updatedAt: updatedAt,
|
||||
describable: describable ?? this.describable,
|
||||
balance: balance,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user