Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From Dart announcements of new releases, breaking changes, and other important news.</p> <p><strong>Library dart:uri removed and class Uri added to core.</strong></p> <p>The library dart:uri has been removed.</p> <p><strong>What changed?</strong></p> <p>The library dart:uri has been removed.</p> <p>The class <code>Uri</code> is now in the <code>core library</code>. The <code>encodeUriComponent</code>, <code>enocdeUri</code>, <code>decodeUriComponent</code>, <code>decodeUri</code> top level functions from <code>dart:uri</code> has been moved to static methods <code>Uri.encodeComponent</code>, <code>Uri.enocdeFull</code>, <code>Uri.decodeComponent</code>, <code>Uri.decodeFull</code>.</p> <p>The constructor <code>Uri.fromComponents</code> has been renamed to just <code>Uri</code> and the previous <code>Uri</code> constructor taking a URI string is no longer available but have to be replaced with a call to the static method Uri.parse.</p> <p>Finally the handling of space to plus and plus to space encodeing/decoding has been removed from <code>Uri.encodeComponent</code> and <code>Uri.decodeComponent</code>. To get this encoding/decoding use the added static methods <code>Uri.encodeQueryComponent</code> and <code>Uri.decodeQueryComponent</code>.</p> <p>Besides this the Uri class have additional features. See the change and the dartdoc for more information.</p> <p>The dartdoc for the <code>Uri</code> class will be improved in the next couple of days.</p> <p><strong>Who is affected?</strong></p> <p>Users of dart:uri.</p> <p><strong>How do I update my code?</strong></p> <p>Change the use of <code>new Uri(...)</code> to <code>Uri.parse(...)</code></p> <p>Change the use of new <code>Uri.fromComponents(...)</code> to <code>new Uri(...)</code></p> <p>Change calls of <code>encodeUriComponent</code>, <code>enocdeUri</code>, <code>decodeUriComponent</code>, <code>decodeUri</code> to calls to <code>Uri.encodeComponent</code>, <code>Uri.enocdeFull</code>, <code>Uri.decodeComponent</code>, <code>Uri.decodeFull</code>.</p> <p>Finally check of you use the fact that <code>encodeUriComponent</code> and <code>decodeUriComponent</code> changed space to plus and plus to space. If so use <code>Uri.encodeQueryComponent</code> and <code>Uri.decodeQueryComponent</code> instead of <code>Uri.encodeComponent</code> and <code>Uri.decodeComponent</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload