getOriginTrials method

Future<List<OriginTrial>> getOriginTrials(
  1. FrameId frameId
)

Get Origin Trials on given frame.

Implementation

Future<List<OriginTrial>> getOriginTrials(FrameId frameId) async {
  var result = await _client.send('Page.getOriginTrials', {
    'frameId': frameId,
  });
  return (result['originTrials'] as List)
      .map((e) => OriginTrial.fromJson(e as Map<String, dynamic>))
      .toList();
}