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