firstOrCompute method
T
firstOrCompute(
- T compute()
First element, or result of compute if empty.
Implementation
T firstOrCompute(T Function() compute) => isEmpty ? compute() : first;
First element, or result of compute if empty.
T firstOrCompute(T Function() compute) => isEmpty ? compute() : first;