accessWithItem<TItem extends Object> method

TItem accessWithItem<TItem extends Object>(
  1. int n
)
inherited

Implementation

TItem accessWithItem<TItem extends Object>(int n) {
  final wi = withItems;
  if(wi == null || n >= wi.length || n < 0) {
    throw AFException("Invalid index $n for with items $wi");
  }
  return wi[n] as TItem;
}