toUrl method

dynamic toUrl([
  1. dynamic includeText = true
])

Implementation

toUrl([includeText = true]) {
  var url = '${Request.origin}/gen?txt=$name}&$attr';
  if (!includeText) {
    url = '${Request.origin}/gen?txt=&$attr';
  }
  return url;
}