updateConnection method

dynamic updateConnection(
  1. EdgeConnectionsModel edgeConnection
)

updateConnection

Implementation

updateConnection(EdgeConnectionsModel edgeConnection) {
  _notifier.value = data.copyWith(
    connections: List<EdgeConnectionsModel>.from(
      data.connections
          .map((c) => c.id == edgeConnection.id ? edgeConnection : c)
          .toList(),
    ),
  );
  update();
}