uri property

Uri? get uri

Implementation

Uri? get uri {
  if (_uriRecords.length == 1) {
    return _uriRecords[0].uri;
  } else {
    return null;
  }
}
set uri (dynamic uri)

Implementation

set uri(var uri) {
  if (uri is String) {
    if (_uriRecords.length == 1) {
      _uriRecords[0] = UriRecord.fromString(uri);
    } else {
      _uriRecords.add(UriRecord.fromString(uri));
    }
  } else if (uri is Uri) {
    if (_uriRecords.length == 1) {
      _uriRecords[0] = UriRecord.fromString(uri.toString());
    } else {
      _uriRecords.add(UriRecord.fromString(uri.toString()));
    }
  }
}