trigger method
Trigger autofill on a form identified by the fieldId.
If the field and related form cannot be autofilled, returns an error.
fieldId Identifies a field that serves as an anchor for autofill.
frameId Identifies the frame that field belongs to.
card Credit card information to fill out the form. Credit card data is not saved.
Implementation
Future<void> trigger(
dom.BackendNodeId fieldId,
CreditCard card, {
page.FrameId? frameId,
}) async {
await _client.send('Autofill.trigger', {
'fieldId': fieldId,
'card': card,
if (frameId != null) 'frameId': frameId,
});
}