findElementOrGetFirstItemIfNull method

T findElementOrGetFirstItemIfNull(
  1. int index
)

Implementation

T findElementOrGetFirstItemIfNull(int index) {
  return this[index > this.length - 1 ? 0 : index];
}