tryReduce method
T?
tryReduce(
- T combine(
- T,
- T
Tries to reduce the iterable, returning null if it fails.
Implementation
T? tryReduce(T Function(T, T) combine) {
try {
return reduce(combine);
} catch (_) {
return null;
}
}