getVmFlags method

Future<List<Map<String, dynamic>>> getVmFlags ({Duration timeout })

Returns the Flags set in the Dart VM as JSON.

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

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"


Future<List<Map<String, dynamic>>> getVmFlags({ Duration timeout }) async {
  timeout ??= _shortTimeout(timeoutMultiplier);
  final Map<String, dynamic> result = await _peer.sendRequest('getFlagList').timeout(timeout);
  return result['flags'];