<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."/>