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