UserBlockRequest constructor Null safety

UserBlockRequest(
  1. {String? userId,
  2. required String targetId}
)

Implementation

UserBlockRequest({String? userId, required String targetId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/block';
  body = {'target_id': targetId};
}