removeConnectionWhere method

void removeConnectionWhere(
  1. bool test(
    1. EdgeConnectionsModel
    )
)

removeConnectionWhere

Removes all connections that satisfy the given condition.

Implementation

void removeConnectionWhere(bool Function(EdgeConnectionsModel) test) {
  _notifier.value = data.copyWith(
    connections: data.connections.where((e) => !test(e)).toList(),
  );
}