List<Transaction>? get _recentTransactions {
return _userTransactions.where((tx) {
assert(tx != null);
return tx.date.isAfter(DateTime.now().subtract(Duration(days: 7),),);
});
}
when I am doing this it is showing this error can anyone explain