takePending method
Implementation
Future<List<IntentCallInvocationEnvelope>> takePending() async {
final rows = await channel.invokeListMethod<Object?>(
'takePendingInvocations',
);
if (rows == null) {
return const <IntentCallInvocationEnvelope>[];
}
return rows
.whereType<Map>()
.map(
(final row) => IntentCallInvocationEnvelope.fromJson(
Map<String, Object?>.from(row),
),
)
.toList(growable: false);
}