setCategory method

Future<void> setCategory(
  1. String categoryId,
  2. String? reason
)

Implementation

Future<void> setCategory(String categoryId, String? reason) async {
  await dataStoreChannel.updateChannel(
    id: id,
    reason: reason,
    payload: {'parent_id': categoryId},
  );
}