withUriSegment method
Adds a segment to the request uri
Implementation
FusionAuthRESTClient withUriSegment(dynamic segment) {
if (segment == null) {
return this;
}
uri ??= '';
if (uri[uri.length - 1] != '/') {
uri += '/';
}
uri = uri + segment;
return this;
}