firstOption property

Option<T> get firstOption

Returns the first element as an Option. If the list is empty, it will return None.

Implementation

Option<T> get firstOption => head;