firstOrDefault property

T? get firstOrDefault

default = null

Implementation

T? get firstOrDefault =>
    this == null ? null : (this!.isEmpty ? null : this!.first);