Want to delete the key by knowing its values in flutter? Simply use removeWhere to delete the entry directly. Following is the example:
_userIncome.removeWhere((k,t) => t.date.difference(datte).inDays == 0 && t.id == transactionId);
For getting the index(or rather entry), do something as following:
final key = _userIncome.entries
(entry) => entry.date.difference(datte).inDays == 0 && entry.id == transactionId,
orElse: () => null,
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.