getUri method

Uri? getUri()

Generates a Uri for the uri address

Returns null if uri is not a valid web address

Implementation

Uri? getUri() {
  if (uri == null) {
    return null;
  }
  return Uri.tryParse(uri!);
}