getNextNative static method

Map? getNextNative(
  1. List apps
)

Implementation

static Map? getNextNative(List apps) {
  final filtered = _filterByPlatform(apps);
  if (filtered.isEmpty) return null;
  final ad = filtered[_nativeIndex % filtered.length];
  _nativeIndex = (_nativeIndex + 1) % filtered.length;
  return ad;
}