firstOrNull method

E? firstOrNull()

Implementation

E? firstOrNull() {
  return isNotEmpty ? first: null;
}