tryLast property
E?
get
tryLast
Returns the last element or null
if the list is empty.
Implementation
E? get tryLast => isNotEmpty ? last : null;
Returns the last element or null
if the list is empty.
E? get tryLast => isNotEmpty ? last : null;