getFrame method

ExportFrame getFrame(
  1. String frameId
)

Returns the ExportFrame with the given frameId. Throws an Exception if no ExportFrame is found.

Implementation

ExportFrame getFrame(String frameId) {
  final ExportFrame? frame = _registeredFrames[frameId];

  if (frame == null) {
    throw Exception('No frame with id $frameId found');
  }

  return frame;
}