spanOrNull property

FileSpan? spanOrNull

Returns the common span of these syntactic entities, or null if the iterable is empty.

Implementation

FileSpan? get spanOrNull {
  return isEmpty ? null : span;
}