getOverlayAt method

OverlayInfo? getOverlayAt(
  1. int index
)

Get the overlay at the specified index.

Parameters

  • IN index The index of the overlay

Returns

  • Empty if the index is out of bounds

Throws

  • An exception if it fails

Implementation

OverlayInfo? getOverlayAt(final int index) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'OverlayCollection',
    'getOverlayAt',
    args: index,
  );
  final int id = resultString['result'];

  if (id == -1) {
    return null;
  }

  return OverlayInfo.init(id);
}