lastOrDefault method

T lastOrDefault(
  1. T defaultValue
)

Implementation

T lastOrDefault(T defaultValue) => lastOrNull ?? defaultValue;