List<Transition> get RecentTransation {
return RecentTransation.where((tx) {
return tx.date.isAfter(DateTime.now().subtract(Duration(days: 6),),);
}).toList();
}
These giving stackoverflow on emulator,What should I change
What should I change
You are calling this method recursively so it gets in an infinitive loop. The RecentTransation
in
return RecentTransation.where((tx) {
is the function itself. I assume it needs to be some variable that actually is the list of all transactions. I don't know what that is for you. maybe it is
return Transation.where((tx) {
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.