ListExtensions<T> extension Null safety

on

Methods

removeFirst() → T
Removes and returns the first object in this list. [...]
replaceFirstWhere(bool test(T), {T? value, T using(T)?, int start = 0}) → T?
Replace the first item in the list that satisfies the provided test with the value provided or obtained using the function provided [...]