updateTeam method

Future<void> updateTeam({
  1. required String teamId,
  2. String? name,
  3. String? description,
})

Implementation

Future<void> updateTeam({
  required String teamId,
  String? name,
  String? description,
}) async {
  final updates = <String, dynamic>{
    'name': ?name,
    'description': ?description,
  };
  await _client.from('teams').update(updates).eq('id', teamId);
}