updateSlot method

  1. @override
Future<void> updateSlot({
  1. required String token,
  2. required Slot slot,
})
override

Pushes an updated slot to the server.

Implementation

@override
Future<void> updateSlot({required String token, required Slot slot}) async {
  log('Updating slot $slot');

  final json = slot.toJson();

  await api.callFunction(
    function: 'local_lbplanner_slots_update_slot',
    body: json,
    token: token,
  );
}