middleValue method

T? middleValue()

Returns the middle element of the iterable.

Implementation

T? middleValue() => isEmpty ? null : elementAt(middleIndex);