inBounds1d method

bool inBounds1d(
  1. int idx
)

Implementation

@pragma('vm:prefer-inline')
bool inBounds1d(int idx) => idx >= 0 && idx < length;