then property
Future<Object> Function<TResult1, TResult2>([FutureOr<TResult1> (T)?, FutureOr<TResult2> ([dynamic])?])
get
then
Implementation
_i2.Future<_i2.Object> Function<TResult1, TResult2>([
_i4.FutureOr<TResult1> Function(T)?,
_i4.FutureOr<TResult2> Function([_i2.dynamic])?,
]) get then => <TResult1, TResult2>([
_i4.FutureOr<TResult1> Function(T)? p0,
_i4.FutureOr<TResult2> Function([_i2.dynamic])? p1,
]) =>
_i6.promiseToFuture(_i6.callMethod(
_i6.getProperty(
this,
'then',
),
r'call',
[
this,
p0 == null
? _i5.undefined
: _i6
.allowInterop((p0) => _i5.Promise.futureOr(() => p0(p0))),
p1 == null
? _i5.undefined
: _i6
.allowInterop((p0) => _i5.Promise.futureOr(() => p1(p0))),
],
));
set
then
(Future<Object> value<TResult1, TResult2>([FutureOr<TResult1> (T)?, FutureOr<TResult2> ([dynamic])?]) )
Implementation
set then(
_i2.Future<_i2.Object> Function<TResult1, TResult2>([
_i4.FutureOr<TResult1> Function(T)?,
_i4.FutureOr<TResult2> Function([_i2.dynamic])?,
]) value) {
_i6.setProperty(
this,
'then',
_i6.allowInterop(value),
);
}