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 assignmentView =
await assignmentViewRepository(appId: app.documentID)!.get(id);
if (assignmentView != null) {
_openIt(app, context, false, assignmentView, feedback);
} else {
openErrorDialog(app, context, '${app.documentID}/_error',
title: 'Error',
errorMessage: 'Cannot find notification dashboard with id $id');
}
}