toUrl method
dynamic
toUrl([
- 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;
}