addComment static method

Future<void> addComment({
  1. required PeamanComment comment,
  2. dynamic onSuccess(
    1. PeamanComment
    )?,
  3. dynamic onError(
    1. dynamic
    )?,
})

Implementation

static Future<void> addComment({
  required final PeamanComment comment,
  final Function(PeamanComment)? onSuccess,
  final Function(dynamic)? onError,
}) {
  return FeedProvider().addComment(
    comment: comment,
    onSuccess: onSuccess,
    onError: onError,
  );
}