updateComponentWithID method
void
updateComponentWithID(
- AppModel app,
- BuildContext context,
- String id,
- EditorFeedback feedback,
override
Implementation
@override
void updateComponentWithID(AppModel app, BuildContext context, String id,
EditorFeedback feedback) async {
var html =
await htmlWithPlatformMediumRepository(appId: app.documentID)!.get(id);
if (html != null) {
_openIt(app, context, false, html, feedback);
} else {
openErrorDialog(app, context, '${app.documentID}/_error',
title: 'Error', errorMessage: 'Cannot find html with id $id');
feedback(false, null);
}
}