setUserCategoryPreference static method

Future setUserCategoryPreference(
  1. int categoryId,
  2. bool categoryEnabled
)

Implementation

static Future<dynamic> setUserCategoryPreference(int categoryId, bool categoryEnabled) async {
  return await _platform
      .invokeMethod(_SET_USER_CATEGORY_PREFERENCE, {"categoryId": categoryId, "categoryEnabled": categoryEnabled});
}