asType<U0, U1, U2, U3> method
Clones this tuple where the clone is cast with the specified type arguments.
Implementation
Tuple4<U0, U1, U2, U3> asType<U0, U1, U2, U3>() {
if (item0 is! U0 || item1 is! U1 || item2 is! U2 || item3 is! U3) {
throw StateError(
'The provided type arguments do not match the runtime type of this tuple\'s items');
}
return Tuple4<U0, U1, U2, U3>(
item0 as U0,
item1 as U1,
item2 as U2,
item3 as U3,
);
}