createVote method

  1. @override
Future<CreateVote> createVote({
  1. required String distinctId,
  2. required String targetId,
  3. required String category,
  4. bool? toggle,
})
override

Implementation

@override
Future<CreateVote> createVote({
  required String distinctId,
  required String targetId,
  required String category,
  bool? toggle,
}) {
  return datasource.createVote(
    distinctId: distinctId,
    targetId: targetId,
    category: category,
    toggle: toggle,
  );
}