ListX<T> extension

List extensions

on

Properties

firstOrNull → T?

Available on List<T>, provided by the ListX extension

Get first item safely
no setter
isEmpty → bool

Available on List<T>, provided by the ListX extension

Check if list is empty
no setter
isNotEmpty → bool

Available on List<T>, provided by the ListX extension

no setter
lastOrNull → T?

Available on List<T>, provided by the ListX extension

Get last item safely
no setter