applyPresetAsync method

Future<Operation> applyPresetAsync(
  1. String nodeId, {
  2. String? presetId,
  3. Preset? preset,
})

Dispatches the same work, returning a handle instead of an answer.

Implementation

Future<Operation> applyPresetAsync(
  String nodeId, {
  String? presetId,
  Preset? preset,
}) async => Operation.fromJson(
  await _object(
    await post('/presets/apply', {
      ..._applyBody(nodeId, presetId, preset),
      'async': true,
    }),
  ),
);