lastOrNull method

T? lastOrNull()

Implementation

T? lastOrNull() {
  try {
    return last;
  } catch (e) {
    return null;
  }
}