CINXE.COM
dart:core library - Dart API
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no"> <meta name="description" content="dart:core library API docs, for the Dart programming language."> <title>dart:core library - Dart API</title> <link rel="canonical" href="https://api.dart.dev/dart-core/dart-core-library.html"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet"> <link rel="stylesheet" href="../static-assets/github.css?v1"> <link rel="stylesheet" href="../static-assets/styles.css?v1"> <link rel="icon" href="../static-assets/favicon.png?v1"> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-VVQ8908SJ5"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-VVQ8908SJ5'); </script> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preload" href="https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400&family=Google+Sans:wght@500&display=swap" as="style"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400&family=Google+Sans:wght@500&display=swap"> <link rel="stylesheet" href="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.css"> </head> <body data-base-href="../" data-using-base-href="false" class="light-theme"> <div id="overlay-under-drawer"></div> <header id="title"> <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span> <ol class="breadcrumbs gt-separated dark hidden-xs"> <li><a href="../index.html">Dart</a></li> <li class="self-crumb">dart:core</li> </ol> <div class="self-name">dart:core</div> <form class="search navbar-right" role="search"> <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."> </form> <div class="toggle" id="theme-button" title="Toggle brightness"> <label for="theme"> <input type="checkbox" id="theme" value="light-theme"> <span id="dark-theme-button" class="material-symbols-outlined"> dark_mode </span> <span id="light-theme-button" class="material-symbols-outlined"> light_mode </span> </label> </div> </header> <main> <div id="dartdoc-main-content" class="main-content" data-above-sidebar="" data-below-sidebar="dart-core/dart-core-library-sidebar.html"> <div> <div id="external-links" class="btn-group"><a title="View source code" class="source-link" href="https://github.com/dart-lang/sdk/blob/88c9758ef131d430d8ce595c6bfb4c90574d3ddd/sdk/lib/core/core.dart#L151"><span class="material-symbols-outlined">description</span></a></div> <h1> <span class="kind-library">dart:core</span> library </h1> </div> <section class="desc markdown"> <p>Built-in types, collections, and other core functionality for every Dart program.</p> <p>This library is automatically imported.</p> <p>Some classes in this library, such as <a href="../dart-core/String-class.html">String</a> and <a href="../dart-core/num-class.html">num</a>, support Dart's built-in data types. Other classes, such as <a href="../dart-core/List-class.html">List</a> and <a href="../dart-core/Map-class.html">Map</a>, provide data structures for managing collections of objects. And still other classes represent commonly used types of data such as URIs, dates and times, and errors.</p> <h2 id="numbers-and-booleans">Numbers and booleans</h2> <p><a href="../dart-core/int-class.html">int</a> and <a href="../dart-core/double-class.html">double</a> provide support for Dart's built-in numerical data types: integers and double-precision floating point numbers, respectively. An object of type <a href="../dart-core/bool-class.html">bool</a> is either true or false. Variables of these types can be constructed from literals:</p> <pre class="language-dart"><code class="language-dart">int meaningOfLife = 42; double valueOfPi = 3.141592; bool visible = true; </code></pre> <h2 id="strings-and-regular-expressions">Strings and regular expressions</h2> <p>A <a href="../dart-core/String-class.html">String</a> is immutable and represents a sequence of characters.</p> <pre class="language-dart"><code class="language-dart">String shakespeareQuote = "All the world's a stage, ..."; </code></pre> <p><a href="../dart-core/StringBuffer-class.html">StringBuffer</a> provides a way to construct strings efficiently.</p> <pre class="language-dart"><code class="language-dart">var moreShakespeare = StringBuffer(); moreShakespeare.write('And all the men and women '); moreShakespeare.write('merely players; ...'); </code></pre> <p>The <a href="../dart-core/String-class.html">String</a> and <a href="../dart-core/StringBuffer-class.html">StringBuffer</a> classes implement string splitting, concatenation, and other string manipulation features.</p> <pre class="language-dart"><code class="language-dart">bool isPalindrome(String text) => text == text.split('').reversed.join(); </code></pre> <p><a href="../dart-core/RegExp-class.html">RegExp</a> implements Dart regular expressions, which provide a grammar for matching patterns within text. For example, here's a regular expression that matches a substring containing one or more digits:</p> <pre class="language-dart"><code class="language-dart">var numbers = RegExp(r'\d+'); </code></pre> <p>Dart regular expressions have the same syntax and semantics as JavaScript regular expressions. See <a href="http://ecma-international.org/ecma-262/5.1/#sec-15.10">ecma-international.org/ecma-262/5.1/#sec-15.10</a> for the specification of JavaScript regular expressions.</p> <h2 id="collections">Collections</h2> <p>The <code>dart:core</code> library provides basic collections, such as <a href="../dart-core/List-class.html">List</a>, <a href="../dart-core/Map-class.html">Map</a>, and <a href="../dart-core/Set-class.html">Set</a>.</p> <p>A <a href="../dart-core/List-class.html">List</a> is an ordered collection of objects, with a length. Lists are sometimes called arrays. Use a <a href="../dart-core/List-class.html">List</a> when you need to access objects by index.</p> <pre class="language-dart"><code class="language-dart">var superheroes = ['Batman', 'Superman', 'Harry Potter']; </code></pre> <p>A <a href="../dart-core/Set-class.html">Set</a> is an unordered collection of unique objects. You cannot get an item efficiently by index (position). Adding an element which is already in the set, has no effect.</p> <pre class="language-dart"><code class="language-dart">var villains = {'Joker'}; print(villains.length); // 1 villains.addAll(['Joker', 'Lex Luthor', 'Voldemort']); print(villains.length); // 3 </code></pre> <p>A <a href="../dart-core/Map-class.html">Map</a> is an unordered collection of key-value pairs, where each key can only occur once. Maps are sometimes called associative arrays because maps associate a key to some value for easy retrieval. Use a <a href="../dart-core/Map-class.html">Map</a> when you need to access objects by a unique identifier.</p> <pre class="language-dart"><code class="language-dart">var sidekicks = {'Batman': 'Robin', 'Superman': 'Lois Lane', 'Harry Potter': 'Ron and Hermione'}; </code></pre> <p>In addition to these classes, <code>dart:core</code> contains <a href="../dart-core/Iterable-class.html">Iterable</a>, an interface that defines functionality common in collections of objects. Examples include the ability to run a function on each element in the collection, to apply a test to each element, to retrieve an object, and to determine the number of elements.</p> <p><a href="../dart-core/Iterable-class.html">Iterable</a> is implemented by <a href="../dart-core/List-class.html">List</a> and <a href="../dart-core/Set-class.html">Set</a>, and used by <a href="../dart-core/Map-class.html">Map</a> for its keys and values.</p> <p>For other kinds of collections, check out the <code>dart:collection</code> library.</p> <h2 id="date-and-time">Date and time</h2> <p>Use <a href="../dart-core/DateTime-class.html">DateTime</a> to represent a point in time and <a href="../dart-core/Duration-class.html">Duration</a> to represent a span of time.</p> <p>You can create <a href="../dart-core/DateTime-class.html">DateTime</a> objects with constructors or by parsing a correctly formatted string.</p> <pre class="language-dart"><code class="language-dart">var now = DateTime.now(); var berlinWallFell = DateTime(1989, 11, 9); var moonLanding = DateTime.parse("1969-07-20"); </code></pre> <p>Create a <a href="../dart-core/Duration-class.html">Duration</a> object by specifying the individual time units.</p> <pre class="language-dart"><code class="language-dart">var timeRemaining = const Duration(hours: 56, minutes: 14); </code></pre> <p>In addition to <a href="../dart-core/DateTime-class.html">DateTime</a> and <a href="../dart-core/Duration-class.html">Duration</a>, <code>dart:core</code> contains the <a href="../dart-core/Stopwatch-class.html">Stopwatch</a> class for measuring elapsed time.</p> <h2 id="uri">Uri</h2> <p>A <a href="../dart-core/Uri-class.html">Uri</a> object represents a uniform resource identifier, which identifies a resource, for example on the web.</p> <pre class="language-dart"><code class="language-dart">var dartlang = Uri.parse('http://dartlang.org/'); </code></pre> <h2 id="errors">Errors</h2> <p>The <a href="../dart-core/Error-class.html">Error</a> class represents the occurrence of an error during runtime. Subclasses of this class represent specific kinds of errors.</p> <h2 id="other-documentation">Other documentation</h2> <p>For more information about how to use the built-in types, refer to <a href="https://dart.dev/guides/language/language-tour#built-in-types">Built-in Types</a> in <a href="https://dart.dev/guides/language/language-tour">A tour of the Dart language</a>.</p> <p>Also, see <a href="https://dart.dev/guides/libraries/library-tour#dartcore---numbers-collections-strings-and-more">dart:core - numbers, collections, strings, and more</a> for more coverage of types in this library.</p> <p>The <a href="https://dart.dev/guides/language/spec">Dart Language Specification</a> provides technical details.</p> </section> <section class="summary offset-anchor" id="classes"> <h2>Classes</h2> <dl> <dt id="BigInt"> <span class="name "><a href="../dart-core/BigInt-class.html">BigInt</a></span> </dt> <dd> An arbitrarily large integer value. </dd> <dt id="bool"> <span class="name "><a href="../dart-core/bool-class.html">bool</a></span> </dt> <dd> The reserved words <code>true</code> and <code>false</code> denote objects that are the only two instances of this class. </dd> <dt id="Comparable"> <span class="name "><a href="../dart-core/Comparable-class.html">Comparable</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span> </dt> <dd> Interface used by types that have an intrinsic ordering. </dd> <dt id="DateTime"> <span class="name "><a href="../dart-core/DateTime-class.html">DateTime</a></span> </dt> <dd> An instant in time, such as July 20, 1969, 8:18pm GMT. </dd> <dt id="Deprecated"> <span class="name "><a href="../dart-core/Deprecated-class.html">Deprecated</a></span> </dt> <dd> The annotation <code>@Deprecated('migration')</code> marks a feature as deprecated. </dd> <dt id="double"> <span class="name "><a href="../dart-core/double-class.html">double</a></span> </dt> <dd> A double-precision floating point number. </dd> <dt id="Duration"> <span class="name "><a href="../dart-core/Duration-class.html">Duration</a></span> </dt> <dd> A span of time, such as 27 days, 4 hours, 12 minutes, and 3 seconds. </dd> <dt id="Enum"> <span class="name "><a href="../dart-core/Enum-class.html">Enum</a></span> </dt> <dd> An enumerated value. </dd> <dt id="Expando"> <span class="name "><a href="../dart-core/Expando-class.html">Expando</a><span class="signature"><<wbr><span class="type-parameter">T extends <a href="../dart-core/Object-class.html">Object</a></span>></span></span> </dt> <dd> An <a href="../dart-core/Expando-class.html">Expando</a> allows adding new properties to objects. </dd> <dt id="Finalizer"> <span class="name "><a href="../dart-core/Finalizer-class.html">Finalizer</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span> </dt> <dd> A finalizer which can be attached to Dart objects. </dd> <dt id="Function"> <span class="name "><a href="../dart-core/Function-class.html">Function</a></span> </dt> <dd> A function value. </dd> <dt id="Future"> <span class="name "><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span> </dt> <dd> The result of an asynchronous computation. </dd> <dt id="int"> <span class="name "><a href="../dart-core/int-class.html">int</a></span> </dt> <dd> An integer number. </dd> <dt id="Invocation"> <span class="name "><a href="../dart-core/Invocation-class.html">Invocation</a></span> </dt> <dd> Representation of the invocation of a member on an object. </dd> <dt id="Iterable"> <span class="name "><a href="../dart-core/Iterable-class.html">Iterable</a><span class="signature"><<wbr><span class="type-parameter">E</span>></span></span> </dt> <dd> A collection of values, or "elements", that can be accessed sequentially. </dd> <dt id="Iterator"> <span class="name "><a href="../dart-core/Iterator-class.html">Iterator</a><span class="signature"><<wbr><span class="type-parameter">E</span>></span></span> </dt> <dd> An interface for getting items, one at a time, from an object. </dd> <dt id="List"> <span class="name "><a href="../dart-core/List-class.html">List</a><span class="signature"><<wbr><span class="type-parameter">E</span>></span></span> </dt> <dd> An indexable collection of objects with a length. </dd> <dt id="Map"> <span class="name "><a href="../dart-core/Map-class.html">Map</a><span class="signature"><<wbr><span class="type-parameter">K</span>, <span class="type-parameter">V</span>></span></span> </dt> <dd> A collection of key/value pairs, from which you retrieve a value using its associated key. </dd> <dt id="MapEntry"> <span class="name "><a href="../dart-core/MapEntry-class.html">MapEntry</a><span class="signature"><<wbr><span class="type-parameter">K</span>, <span class="type-parameter">V</span>></span></span> </dt> <dd> A key/value pair representing an entry in a <a href="../dart-core/Map-class.html">Map</a>. </dd> <dt id="Match"> <span class="name "><a href="../dart-core/Match-class.html">Match</a></span> </dt> <dd> A result from searching within a string. </dd> <dt id="Null"> <span class="name "><a href="../dart-core/Null-class.html">Null</a></span> </dt> <dd> The reserved word <code>null</code> denotes an object that is the sole instance of this class. </dd> <dt id="num"> <span class="name "><a href="../dart-core/num-class.html">num</a></span> </dt> <dd> An integer or floating-point number. </dd> <dt id="Object"> <span class="name "><a href="../dart-core/Object-class.html">Object</a></span> </dt> <dd> The base class for all Dart objects except <code>null</code>. </dd> <dt id="Pattern"> <span class="name "><a href="../dart-core/Pattern-class.html">Pattern</a></span> </dt> <dd> An interface for basic searches within strings. </dd> <dt id="pragma"> <span class="name "><a href="../dart-core/pragma-class.html">pragma</a></span> </dt> <dd> A hint to tools. </dd> <dt id="Record"> <span class="name "><a href="../dart-core/Record-class.html">Record</a></span> </dt> <dd> A record value. </dd> <dt id="RegExp"> <span class="name "><a href="../dart-core/RegExp-class.html">RegExp</a></span> </dt> <dd> A regular expression pattern. </dd> <dt id="RegExpMatch"> <span class="name "><a href="../dart-core/RegExpMatch-class.html">RegExpMatch</a></span> </dt> <dd> A regular expression match. </dd> <dt id="RuneIterator"> <span class="name "><a href="../dart-core/RuneIterator-class.html">RuneIterator</a></span> </dt> <dd> <a href="../dart-core/Iterator-class.html">Iterator</a> for reading runes (integer Unicode code points) of a Dart string. </dd> <dt id="Runes"> <span class="name "><a href="../dart-core/Runes-class.html">Runes</a></span> </dt> <dd> The runes (integer Unicode code points) of a <a href="../dart-core/String-class.html">String</a>. </dd> <dt id="Set"> <span class="name "><a href="../dart-core/Set-class.html">Set</a><span class="signature"><<wbr><span class="type-parameter">E</span>></span></span> </dt> <dd> A collection of objects in which each object can occur only once. </dd> <dt id="Sink"> <span class="name "><a href="../dart-core/Sink-class.html">Sink</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span> </dt> <dd> A generic destination for data. </dd> <dt id="StackTrace"> <span class="name "><a href="../dart-core/StackTrace-class.html">StackTrace</a></span> </dt> <dd> An interface implemented by all stack trace objects. </dd> <dt id="Stopwatch"> <span class="name "><a href="../dart-core/Stopwatch-class.html">Stopwatch</a></span> </dt> <dd> A stopwatch which measures time while it's running. </dd> <dt id="Stream"> <span class="name "><a href="../dart-async/Stream-class.html">Stream</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span> </dt> <dd> A source of asynchronous data events. </dd> <dt id="String"> <span class="name "><a href="../dart-core/String-class.html">String</a></span> </dt> <dd> A sequence of UTF-16 code units. </dd> <dt id="StringBuffer"> <span class="name "><a href="../dart-core/StringBuffer-class.html">StringBuffer</a></span> </dt> <dd> A class for concatenating strings efficiently. </dd> <dt id="StringSink"> <span class="name "><a href="../dart-core/StringSink-class.html">StringSink</a></span> </dt> <dd> </dd> <dt id="Symbol"> <span class="name "><a href="../dart-core/Symbol-class.html">Symbol</a></span> </dt> <dd> Opaque name used by mirrors, invocations and <a href="../dart-core/Function/apply.html">Function.apply</a>. </dd> <dt id="Type"> <span class="name "><a href="../dart-core/Type-class.html">Type</a></span> </dt> <dd> Runtime representation of a type. </dd> <dt id="Uri"> <span class="name "><a href="../dart-core/Uri-class.html">Uri</a></span> </dt> <dd> A parsed URI, such as a URL. </dd> <dt id="UriData"> <span class="name "><a href="../dart-core/UriData-class.html">UriData</a></span> </dt> <dd> A way to access the structure of a <code>data:</code> URI. </dd> <dt id="WeakReference"> <span class="name "><a href="../dart-core/WeakReference-class.html">WeakReference</a><span class="signature"><<wbr><span class="type-parameter">T extends <a href="../dart-core/Object-class.html">Object</a></span>></span></span> </dt> <dd> A weak reference to a Dart object. </dd> </dl> </section> <section class="summary offset-anchor" id="extensions"> <h2>Extensions</h2> <dl> <dt id="DateTimeCopyWith"> <span class="name "><a href="../dart-core/DateTimeCopyWith.html">DateTimeCopyWith</a></span> on <a href="../dart-core/DateTime-class.html">DateTime</a> </dt> <dd> Adds <a href="../dart-core/DateTimeCopyWith/copyWith.html">copyWith</a> method to <a href="../dart-core/DateTime-class.html">DateTime</a> objects. </dd> <dt id="EnumByName"> <span class="name "><a href="../dart-core/EnumByName.html">EnumByName</a></span> on <a href="../dart-core/Iterable-class.html">Iterable</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span> </dt> <dd> Access enum values by name. </dd> <dt id="EnumName"> <span class="name "><a href="../dart-core/EnumName.html">EnumName</a></span> on <a href="../dart-core/Enum-class.html">Enum</a> </dt> <dd> Access to the name of an enum value. </dd> <dt id="FutureExtensions"> <span class="name "><a href="../dart-async/FutureExtensions.html">FutureExtensions</a></span> on <a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span> </dt> <dd> Convenience methods on futures. </dd> <dt id="FutureIterable"> <span class="name "><a href="../dart-async/FutureIterable.html">FutureIterable</a></span> on <a href="../dart-core/Iterable-class.html">Iterable</a><span class="signature"><<wbr><span class="type-parameter"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span></span>></span> </dt> <dd> </dd> <dt id="FutureRecord2"> <span class="name "><a href="../dart-async/FutureRecord2.html">FutureRecord2</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord3"> <span class="name "><a href="../dart-async/FutureRecord3.html">FutureRecord3</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord4"> <span class="name "><a href="../dart-async/FutureRecord4.html">FutureRecord4</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord5"> <span class="name "><a href="../dart-async/FutureRecord5.html">FutureRecord5</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T5</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord6"> <span class="name "><a href="../dart-async/FutureRecord6.html">FutureRecord6</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T5</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T6</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord7"> <span class="name "><a href="../dart-async/FutureRecord7.html">FutureRecord7</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T5</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T6</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T7</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord8"> <span class="name "><a href="../dart-async/FutureRecord8.html">FutureRecord8</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T5</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T6</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T7</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T8</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="FutureRecord9"> <span class="name "><a href="../dart-async/FutureRecord9.html">FutureRecord9</a></span> on (<span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T1</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T2</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T3</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T4</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T5</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T6</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T7</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T8</span>></span></span>, </span><span class="field"><span class="type-annotation"><a href="../dart-async/Future-class.html">Future</a><span class="signature"><<wbr><span class="type-parameter">T9</span>></span></span></span>) </dt> <dd> Parallel operations on a record of futures. </dd> <dt id="IterableExtensions"> <span class="name "><a href="../dart-collection/IterableExtensions.html">IterableExtensions</a></span> on <a href="../dart-core/Iterable-class.html">Iterable</a><span class="signature"><<wbr><span class="type-parameter">T</span>></span> </dt> <dd> Operations on iterables. </dd> <dt id="NullableIterableExtensions"> <span class="name "><a href="../dart-collection/NullableIterableExtensions.html">NullableIterableExtensions</a></span> on <a href="../dart-core/Iterable-class.html">Iterable</a><span class="signature"><<wbr><span class="type-parameter">T?</span>></span> </dt> <dd> Operations on iterables with nullable elements. </dd> </dl> </section> <section class="summary offset-anchor" id="constants"> <h2>Constants</h2> <dl class="properties"> <dt id="deprecated" class="constant"> <span class="name "><a href="../dart-core/deprecated-constant.html">deprecated</a></span> <span class="signature">→ const <a href="../dart-core/Deprecated-class.html">Deprecated</a></span> </dt> <dd> Marks a feature as <a href="../dart-core/Deprecated-class.html">Deprecated</a> until the next release. </dd> <dt id="override" class="constant"> <span class="name "><a href="../dart-core/override-constant.html">override</a></span> <span class="signature">→ const <a href="../dart-core/Object-class.html">Object</a></span> </dt> <dd> Annotation on instance members which override an interface member. </dd> </dl> </section> <section class="summary offset-anchor" id="functions"> <h2>Functions</h2> <dl class="callables"> <dt id="identical" class="callable"> <span class="name"><a href="../dart-core/identical.html">identical</a></span><span class="signature">(<wbr><span class="parameter" id="identical-param-a"><span class="type-annotation"><a href="../dart-core/Object-class.html">Object</a>?</span> <span class="parameter-name">a</span>, </span><span class="parameter" id="identical-param-b"><span class="type-annotation"><a href="../dart-core/Object-class.html">Object</a>?</span> <span class="parameter-name">b</span></span>) <span class="returntype parameter">→ <a href="../dart-core/bool-class.html">bool</a></span> </span> </dt> <dd> Check whether two object references are to the same object. </dd> <dt id="identityHashCode" class="callable"> <span class="name"><a href="../dart-core/identityHashCode.html">identityHashCode</a></span><span class="signature">(<wbr><span class="parameter" id="identityHashCode-param-object"><span class="type-annotation"><a href="../dart-core/Object-class.html">Object</a>?</span> <span class="parameter-name">object</span></span>) <span class="returntype parameter">→ <a href="../dart-core/int-class.html">int</a></span> </span> </dt> <dd> The identity hash code of <code>object</code>. </dd> <dt id="print" class="callable"> <span class="name"><a href="../dart-core/print.html">print</a></span><span class="signature">(<wbr><span class="parameter" id="print-param-object"><span class="type-annotation"><a href="../dart-core/Object-class.html">Object</a>?</span> <span class="parameter-name">object</span></span>) <span class="returntype parameter">→ void</span> </span> </dt> <dd> Prints an object to the console. </dd> </dl> </section> <section class="summary offset-anchor" id="typedefs"> <h2>Typedefs</h2> <dl> <dt id="Comparator" class="callable"> <span class="name"><a href="../dart-core/Comparator.html">Comparator</a></span><<wbr><span class="type-parameter">T</span>><span class="signature"> <span class="returntype parameter">= <a href="../dart-core/int-class.html">int</a> Function<span class="signature">(<span class="parameter" id="param-a"><span class="type-annotation">T</span> <span class="parameter-name">a</span>, </span><span class="parameter" id="param-b"><span class="type-annotation">T</span> <span class="parameter-name">b</span></span>)</span></span> </span> </dt> <dd> The signature of a generic comparison function. </dd> </dl> </section> <section class="summary offset-anchor" id="exceptions"> <h2>Exceptions / Errors</h2> <dl> <dt id="ArgumentError"> <span class="name "><a href="../dart-core/ArgumentError-class.html">ArgumentError</a></span> </dt> <dd> Error thrown when a function is passed an unacceptable argument. </dd> <dt id="AssertionError"> <span class="name "><a href="../dart-core/AssertionError-class.html">AssertionError</a></span> </dt> <dd> Error thrown by the runtime system when an assert statement fails. </dd> <dt id="ConcurrentModificationError"> <span class="name "><a href="../dart-core/ConcurrentModificationError-class.html">ConcurrentModificationError</a></span> </dt> <dd> Error occurring when a collection is modified during iteration. </dd> <dt id="Error"> <span class="name "><a href="../dart-core/Error-class.html">Error</a></span> </dt> <dd> Error objects thrown in the case of a program failure. </dd> <dt id="Exception"> <span class="name "><a href="../dart-core/Exception-class.html">Exception</a></span> </dt> <dd> A marker interface implemented by all core library exceptions. </dd> <dt id="FormatException"> <span class="name "><a href="../dart-core/FormatException-class.html">FormatException</a></span> </dt> <dd> Exception thrown when a string or some other data does not have an expected format and cannot be parsed or processed. </dd> <dt id="IndexError"> <span class="name "><a href="../dart-core/IndexError-class.html">IndexError</a></span> </dt> <dd> A specialized <a href="../dart-core/RangeError-class.html">RangeError</a> used when an index is not in the range <code>0..indexable.length-1</code>. </dd> <dt id="IntegerDivisionByZeroException"> <span class="name deprecated"><a class="deprecated" href="../dart-core/IntegerDivisionByZeroException-class.html">IntegerDivisionByZeroException</a></span> </dt> <dd> </dd> <dt id="NoSuchMethodError"> <span class="name "><a href="../dart-core/NoSuchMethodError-class.html">NoSuchMethodError</a></span> </dt> <dd> Error thrown on an invalid function or method invocation. </dd> <dt id="OutOfMemoryError"> <span class="name "><a href="../dart-core/OutOfMemoryError-class.html">OutOfMemoryError</a></span> </dt> <dd> Error that the platform can use in case of memory shortage. </dd> <dt id="ParallelWaitError"> <span class="name "><a href="../dart-async/ParallelWaitError-class.html">ParallelWaitError</a><span class="signature"><<wbr><span class="type-parameter">V</span>, <span class="type-parameter">E</span>></span></span> </dt> <dd> Error thrown when waiting for multiple futures, when some have errors. </dd> <dt id="RangeError"> <span class="name "><a href="../dart-core/RangeError-class.html">RangeError</a></span> </dt> <dd> Error thrown due to an argument value being outside an accepted range. </dd> <dt id="StackOverflowError"> <span class="name "><a href="../dart-core/StackOverflowError-class.html">StackOverflowError</a></span> </dt> <dd> Error that the platform can use in case of stack overflow. </dd> <dt id="StateError"> <span class="name "><a href="../dart-core/StateError-class.html">StateError</a></span> </dt> <dd> The operation was not allowed by the current state of the object. </dd> <dt id="TypeError"> <span class="name "><a href="../dart-core/TypeError-class.html">TypeError</a></span> </dt> <dd> Error thrown by the runtime system when a dynamic type error happens. </dd> <dt id="UnimplementedError"> <span class="name "><a href="../dart-core/UnimplementedError-class.html">UnimplementedError</a></span> </dt> <dd> Thrown by operations that have not been implemented yet. </dd> <dt id="UnsupportedError"> <span class="name "><a href="../dart-core/UnsupportedError-class.html">UnsupportedError</a></span> </dt> <dd> The operation was not allowed by the object. </dd> </dl> </section> </div> <!-- /.main-content --> <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left"> <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. --> <header id="header-search-sidebar" class="hidden-l"> <form class="search-sidebar" role="search"> <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."> </form> </header> <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav"> <li><a href="../index.html">Dart</a></li> <li class="self-crumb">dart:core</li> </ol> <h5><span class="package-name">Dart</span> <span class="package-kind">SDK</span></h5> <ol> <li class="section-title">Libraries</li> <li class="section-subtitle">Core</li> <li class="section-subitem"><a href="../dart-async/dart-async-library.html">dart:async</a></li> <li class="section-subitem"><a href="../dart-collection/dart-collection-library.html">dart:collection</a></li> <li class="section-subitem"><a href="../dart-convert/dart-convert-library.html">dart:convert</a></li> <li class="section-subitem"><a href="../dart-core/dart-core-library.html">dart:core</a></li> <li class="section-subitem"><a href="../dart-developer/dart-developer-library.html">dart:developer</a></li> <li class="section-subitem"><a href="../dart-math/dart-math-library.html">dart:math</a></li> <li class="section-subitem"><a href="../dart-typed_data/dart-typed_data-library.html">dart:typed_data</a></li> <li class="section-subtitle">VM</li> <li class="section-subitem"><a href="../dart-ffi/dart-ffi-library.html">dart:ffi</a></li> <li class="section-subitem"><a href="../dart-io/dart-io-library.html">dart:io</a></li> <li class="section-subitem"><a href="../dart-isolate/dart-isolate-library.html">dart:isolate</a></li> <li class="section-subitem"><a href="../dart-mirrors/dart-mirrors-library.html">dart:mirrors</a></li> <li class="section-subtitle">Web</li> <li class="section-subitem"> <a href="https://pub.dev/documentation/web/latest/" target="_blank"> package:web <span class="material-symbols-outlined">open_in_new</span> </a> </li> <li class="section-subitem"><a href="../dart-js_interop/dart-js_interop-library.html">dart:js_interop</a></li> <li class="section-subitem"><a href="../dart-js_interop_unsafe/dart-js_interop_unsafe-library.html">dart:js_interop_unsafe</a></li> <li class="section-subtitle">Web (Legacy)</li> <li class="section-subitem"> <a href="https://pub.dev/documentation/js/latest/" target="_blank"> package:js <span class="material-symbols-outlined">open_in_new</span> </a> </li> <li class="section-subitem"><a href="../dart-html/dart-html-library.html">dart:html</a></li> <li class="section-subitem"><a href="../dart-indexed_db/dart-indexed_db-library.html">dart:indexed_db</a></li> <li class="section-subitem"><a href="../dart-js/dart-js-library.html">dart:js</a></li> <li class="section-subitem"><a href="../dart-js_util/dart-js_util-library.html">dart:js_util</a></li> <li class="section-subitem"><a href="../dart-svg/dart-svg-library.html">dart:svg</a></li> <li class="section-subitem"><a href="../dart-web_audio/dart-web_audio-library.html">dart:web_audio</a></li> <li class="section-subitem"><a href="../dart-web_gl/dart-web_gl-library.html">dart:web_gl</a></li> </ol> </div> <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right"> <h5>dart:core library</h5> </div><!--/sidebar-offcanvas-right--> </main> <footer> <span class="no-break"> Dart 3.5.4 </span> <span class="glue-footer"> <span class="no-break"> | <a href="https://dart.dev/terms" title="Terms of use">Terms</a> </span> <span class="no-break"> | <a href="https://policies.google.com/privacy" target="_blank" rel="noopener" title="Privacy policy" class="no-automatic-external">Privacy</a> </span> <span class="no-break"> | <a href="https://dart.dev/security" title="Security philosophy and practices">Security</a> </span> <div class="copyright" style="font-size: 0.9em; color: darkgrey; margin-top: 0.5em;"> Except as otherwise noted, this site is licensed under a <a style="color: darkgrey;" href="https://creativecommons.org/licenses/by/4.0/"> Creative Commons Attribution 4.0 International License</a> and code samples are licensed under the <a style="color: darkgrey;" href="https://opensource.org/licenses/BSD-3-Clause" class="no-automatic-external"> 3-Clause BSD License</a> </div> </span> </footer> <script src="../static-assets/highlight.pack.js?v1"></script> <script src="../static-assets/docs.dart.js"></script> <button aria-hidden="true" class="glue-footer__link glue-cookie-notification-bar-control"> Cookies management controls </button> <script src="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.js" data-glue-cookie-notification-bar-category="2B"> </script> </body> </html>