mirrored_repositories/public-apis-mobile-client/lib/app/modules/controllers/favorites_controller
import 'package:public_apis_desktop_client/app/modules/controllers/favorites_controller/favorites_controller.dart';

extension RemoveFromFavorites on FavoritesController {
  /// Remove api from favorites hive box.
  void removeFromFavorites({
    required bool isFavorite,
    required String key,
  }) {
    favorites.deleteWithKey(key);
    isFavorite = false;
  }
}
