callPickColor method

Future<DBusObjectPath> callPickColor(
  1. String parentWindow,
  2. Map<String, DBusValue> options, {
  3. bool noAutoStart = false,
  4. bool allowInteractiveAuthorization = false,
})

Invokes org.freedesktop.portal.Screenshot.PickColor()

Implementation

Future<DBusObjectPath> callPickColor(
    String parentWindow, Map<String, DBusValue> options,
    {bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  var result = await callMethod(
      'org.freedesktop.portal.Screenshot',
      'PickColor',
      [DBusString(parentWindow), DBusDict.stringVariant(options)],
      replySignature: DBusSignature('o'),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
  return result.returnValues[0].asObjectPath();
}