firstOrDefault method
T?
firstOrDefault({
- T? defaultValue,
Implementation
T? firstOrDefault({T? defaultValue}) => isEmpty ? defaultValue : first;
T? firstOrDefault({T? defaultValue}) => isEmpty ? defaultValue : first;