middleIndex property

int get middleIndex

Returns the middle index of the iterable.

Implementation

int get middleIndex => length ~/ 2;