firstOrDefault method
dynamic
firstOrDefault({
- dynamic defValue,
A method to get thye first element or null (if the list is empty)
Implementation
dynamic firstOrDefault({dynamic defValue}) => (isEmpty ? defValue : first);