singleOrNull<T> static method
Implementation
static T? singleOrNull<T>(Iterable<T>? items) {
if (items?.length != 1) return null;
return items?.first;
}
static T? singleOrNull<T>(Iterable<T>? items) {
if (items?.length != 1) return null;
return items?.first;
}