singleOrNull method

T? singleOrNull()

Implementation

T? singleOrNull() {
	if (this.length != 1) {
		return null;
	}
	return this.single;
}