setRegion method

void setRegion(
  1. String? region
)

Set a new region for the socket connection

Implementation

void setRegion(String? region) {
  _region = region;
  emit("region-updated", region);
}