firstOrNull method

T? firstOrNull()

Implementation

T? firstOrNull() {
  try {
    return first;
  } catch (e) {
    return null;
  }
}