maxIndex property

int get maxIndex

Returns the index of the maximum value in this.

Implementation

int get maxIndex => x > y ? 0 : 1;