hernoemGebruiker method

Future<void> hernoemGebruiker(
  1. String id,
  2. String naam
)

Implementation

Future<void> hernoemGebruiker(String id, String naam) async {
  final idx = _gebruikers.indexWhere((g) => g.id == id);
  if (idx < 0) return;
  _gebruikers[idx] = _gebruikers[idx].copyWith(naam: naam.trim());
  await _slaOp();
  notifyListeners();
}