secondOrNull property
T?
get
secondOrNull
Returns the second element in the list or null if the list has less than 2 elements.
Implementation
T? get secondOrNull => elementAtOrNull(1);
Returns the second element in the list or null if the list has less than 2 elements.
T? get secondOrNull => elementAtOrNull(1);