blockUser method

Future<void> blockUser(
  1. String userId
)

Blocks a user.

userId is the ID of the user to block.

Throws an exception if blocking fails.

Implementation

Future<void> blockUser(String userId) async {
  await controller.blockUser(userId);
  notifyListeners();
}