findChildIndexBuilder method

int findChildIndexBuilder(
  1. String id,
  2. List<AssetEntity> assets, {
  3. int placeholderCount = 0,
})

Implementation

int findChildIndexBuilder(String id, List<AssetEntity> assets, {int placeholderCount = 0}) {
  int index = assets.indexWhere((AssetEntity e) => e.id == id);
  return index;
}