forked from Henry-Hiles/nexus
hopefully fix edge clearing issue
This commit is contained in:
parent
2c467d767c
commit
f8e64ea284
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ class SpaceEdgesController extends Notifier<IMap<String, IList<SpaceEdge>>> {
|
|||
@override
|
||||
IMap<String, IList<SpaceEdge>> build() => const IMap.empty();
|
||||
|
||||
void set(IMap<String, IList<SpaceEdge>> newEdges) => state = newEdges;
|
||||
void set(IMap<String, IList<SpaceEdge>> newEdges) =>
|
||||
state = state.addAll(newEdges);
|
||||
|
||||
static final provider =
|
||||
NotifierProvider<SpaceEdgesController, IMap<String, IList<SpaceEdge>>>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue