elementAt method

T elementAt(
  1. int index
)

Implementation

T elementAt(int index) {
  final element = obj.elementAt(index);
  if (element == null) throw Exception("Element not found");
  final componentType = GuiComponentType.values
      .where((e) => e.value == element.typeAsNumber)
      .firstOrNull;
  return _classByTypeNumber(componentType, element);
}