findResult<T> static method
Implementation
static T? findResult<T>({required List<Func<T>?> checks, T? exclude}) {
for (var check in checks) {
if (check == null) continue;
final result = check();
if (result != null && (exclude != null && result != exclude)) {
return result;
}
}
return null;
}