<itemvalue="The argument [timeout] is used to specify the maximum allowed time to wait for a connection to be established. If [timeout] is longer than the system level timeout duration, a timeout may occur sooner than specified in [timeout]. On timeout, a [SocketException] is thrown and all ongoing connection attempts to [host] are cancelled."/>
<itemvalue="The [sourcePort] defines the local port to bind to. If [sourcePort] is not specified or zero, a port will be chosen."/>
<itemvalue="The argument [sourceAddress] can be used to specify the local address to bind when making the connection. The [sourceAddress] can either be a [String] or an [InternetAddress]. If a [String] is passed it must hold a numeric IP address."/>
<itemvalue="Creates a new socket connection to the host and port and returns a [Future] that will complete with either a [Socket] once connected or an error if the host-lookup or connection failed. [host] can either be a [String] or an [InternetAddress]. If [host] is a [String], [connect] will perform a [InternetAddress.lookup] and try all returned [InternetAddress]es, until connected. Unless a connection was established, the error from the first failing connection is returned. The argument [sourceAddress] can be used to specify the local address to bind when making the connection. The [sourceAddress] can either be a [String] or an [InternetAddress]. If a [String] is passed it must hold a numeric IP address. The [sourcePort] defines the local port to bind to. If [sourcePort] is not specified or zero, a port will be chosen. The argument [timeout] is used to specify the maximum allowed time to wait for a connection to be established. If [timeout] is longer than the system level timeout duration, a timeout may occur sooner than specified in [timeout]. On timeout, a [SocketException] is thrown and all ongoing connection attempts to [host] are cancelled."/>
<itemvalue="Whether this map contains the given [key]. Returns true if any of the keys in the map are equal to `key` according to the equality used by the map. ```dart final moonCount = <String, int>{'Mercury': 0, 'Venus': 0, 'Earth': 1, 'Mars': 2, 'Jupiter': 79, 'Saturn': 82, 'Uranus': 27, 'Neptune': 14 }; final containsUranus = moonCount.containsKey('Uranus'); true final containsPluto = moonCount.containsKey('Pluto'); false ```"/>
<itemvalue="The value for the given [key], or `null` if [key] is not in the map. Some maps allow `null` as a value. For those maps, a lookup using this operator cannot distinguish between a key not being in the map, and the key being there with a `null` value. Methods like [containsKey] or [putIfAbsent] can be used if the distinction is important."/>
<itemvalue="Creates a new string by concatenating this string with itself a number of times. The result of `str n` is equivalent to `str + str + ...`(n times)`... + str`. ```dart const string = 'Dart'; final multiplied = string 3; print(multiplied); 'DartDartDart' ``` Returns an empty string if [times] is zero or negative."/>
<itemvalue="Shuffles the elements of this list randomly. ```dart final numbers = <int>[1, 2, 3, 4, 5]; numbers.shuffle(); print(numbers); [1, 3, 4, 5, 2] OR some other random result. ```"/>
<itemvalue="If `test` returns `true`, [onError] is called with the error and possibly stack trace, and the returned future is completed with the result of this call in exactly the same way as for [then]'s `onError`. If `test` is omitted, it defaults to a function that always returns true. The `test` function should not throw, but if it does, it is handled as if the `onError` function had thrown. Note that futures don't delay reporting of errors until listeners are added. If the first `catchError` (or `then`) call happens after this future has completed with an error then the error is reported as unhandled error. See the description on [Future]."/>
<itemvalue="If [onError] is not given, and this future completes with an error, the error is forwarded directly to the returned future. In most cases, it is more readable to use [catchError] separately, possibly with a `test` parameter, instead of handling both value and error in a single [then] call. Note that futures don't delay reporting of errors until listeners are added. If the first `then` or `catchError` call happens after this future has completed with an error, then the error is reported as unhandled error. See the description on [Future]."/>
<itemvalue="Animated version of [Padding] which automatically transitions the indentation over a given duration whenever the given inset changes. {@youtube 560 315 https:www.youtube.comwatch?v=PY2m0fhGNz4} Here's an illustration of what using this widget looks like, using a [curve] of [Curves.fastOutSlowIn]. {@animation 250 266 https:flutter.github.ioassets-for-api-docsassetswidgetsanimated_padding.mp4} {@tool dartpad} The following code implements the [AnimatedPadding] widget, using a [curve] of [Curves.easeInOut]. See code in examplesapilibwidgetsimplicit_animationsanimated_padding.0.dart {@end-tool} See also: [AnimatedContainer], which can transition more values at once. [AnimatedAlign], which automatically transitions its child's position over a given duration whenever the given [AnimatedAlign.alignment] changes."/>
<itemvalue="Creates a [Shader] for this gradient to fill the given rect. If the gradient's configuration is text-direction-dependent, for example it uses [AlignmentDirectional] objects instead of [Alignment] objects, then the `textDirection` argument must not be null. The shader's transform will be resolved from the [transform] of this gradient."/>