getVmFlags method

  1. @override
Future<List<Map<String, dynamic>>> getVmFlags ()

Returns the Flags set in the Dart VM as JSON.

See the complete documentation for the getFlagList Dart VM service method.

Example return value:

    "name": "timeline_recorder",
    "comment": "Select the timeline recorder used. Valid values: ring, endless, startup, and systrace.",
    "modified": false,
    "_flagType": "String",
    "valueAsString": "ring"

Throws UnimplementedError on WebFlutterDriver instances.


Future<List<Map<String, dynamic>>> getVmFlags() async {
  await _restorePeerConnectionIfNeeded();
  final Map<String, dynamic> result = await _peer.sendRequest('getFlagList') as Map<String, dynamic>;
  return result != null
      ? (result['flags'] as List<dynamic>).cast<Map<String,dynamic>>()
      : const <Map<String, dynamic>>[];