initFromModel method

Future<void> initFromModel(
  1. ScreenContentModel model
)

Implementation

Future<void> initFromModel(ScreenContentModel model) async {
  if (state.isSyncedWithFile == false) {
    logInfo('Init from model');
    await _updateContent(model.content);
    emit(state.copyWith(contentType: model.contentType));
  }
}