lastOrNull method

E? lastOrNull()

Implementation

E? lastOrNull() {
  return isNotEmpty ? last : null;
}