WooCategoryApi extension

on

Methods

createCategory(WooProductCategory category, {bool? useFaker}) Future<WooProductCategory>

Available on WooCommerce, provided by the WooCategoryApi extension

deleteCategory(int id, {bool force = false, bool? useFaker}) Future<bool>

Available on WooCommerce, provided by the WooCategoryApi extension

force Whether to permanently delete the category instead of moving to trash. Default is false.
getCategories({WooContext context = WooContext.view, int page = 1, int perPage = 10, String? search, List<int>? exclude, List<int>? include, WooSortOrder order = WooSortOrder.desc, WooCategoryOrderBy orderBy = WooCategoryOrderBy.name, bool? hideEmpty, int? parent, int? product, String? slug, bool? useFaker}) Future<List<WooProductCategory>>

Available on WooCommerce, provided by the WooCategoryApi extension

context Scope under which the request is made; determines fields present in response. Options: view and edit. Default is view.
getCategory(int id, {bool? useFaker}) Future<WooProductCategory>

Available on WooCommerce, provided by the WooCategoryApi extension

updateCategory(WooProductCategory category, {bool? useFaker}) Future<WooProductCategory>

Available on WooCommerce, provided by the WooCategoryApi extension