currentSurfaceId property
String?
get
currentSurfaceId
The surface the replay is showing, which is the last one created up to position.
Implementation
String? get currentSurfaceId {
String? id;
for (final step in trace.steps.take(_position)) {
if (step is GenUiMessageStep) {
if ((step.message['createSurface'] as Map?)?['surfaceId']
case final String created) {
id = created;
}
}
}
return id;
}