updateMenuItem method

Future<void> updateMenuItem(
  1. int itemId, {
  2. String? route,
  3. int? position,
  4. String? title,
  5. int? artist,
  6. int? form,
  7. int? page,
  8. int? segmentPage,
  9. int? gallery,
  10. int? category,
  11. bool? blogHomePage,
  12. bool? highlighted,
})

Updates the given menu item with the given values

Implementation

Future<void> updateMenuItem(
  int itemId, {
  String? route,
  int? position,
  String? title,
  int? artist,
  int? form,
  int? page,
  int? segmentPage,
  int? gallery,
  int? category,
  bool? blogHomePage,
  bool? highlighted,
}) async {
  await _put('/api/menu-item/$itemId', data: {
    'route': route,
    'position': position,
    'title': title,
    'artist': artist,
    'form': form,
    'page': page,
    'segmentPage': segmentPage,
    'gallery': gallery,
    'category': category,
    'blogHomePage': blogHomePage,
    'highlighted': highlighted,
  });
}