toggleBlockUser method

void toggleBlockUser(
  1. bool? value
)

Toggles whether to block the user.

value is the new value. If null, defaults to false.

Implementation

void toggleBlockUser(bool? value) {
  _blockUser = value ?? false;
  notifyListeners();
}