getPendingCount method

Future<int> getPendingCount(
  1. String userId
)

Returns the number of pending synchronization operations for a given userId.

Implementation

Future<int> getPendingCount(String userId) async {
  final pending = await getPending(userId);
  return pending.length;
}