toUri method
Implementation
Uri? toUri() {
if (this.textEmpty() || !this!.startsWith('http')) {
return null;
}
if (this!.contains('http://')) {
return Uri.http('', this!.split('http://')[1]);
}
return Uri.parse(this!);
}
Uri? toUri() {
if (this.textEmpty() || !this!.startsWith('http')) {
return null;
}
if (this!.contains('http://')) {
return Uri.http('', this!.split('http://')[1]);
}
return Uri.parse(this!);
}