onPagesChanged method

void onPagesChanged(
  1. List<MapPagesEntry> pages
)

Implementation

void onPagesChanged(List<MapPagesEntry> pages) {
  emit(
    state.copyWith(
      inEditorPages: Map.fromEntries(
        pages.map((e) => MapEntry(e.page.id, e)),
      ),
    ),
  );
}