cFirst property

T? cFirst

Get the first item from the iterable if it's not empty.

If the iterable is empty, this method returns null.

Implementation

T? get cFirst => isEmpty ? null : first;