applyPreset method
Applies a preset to a node and waits.
Name a saved one with presetId — the copy everybody agrees on — or send
one inline with preset.
Implementation
Future<PresetApplyResult> applyPreset(
String nodeId, {
String? presetId,
Preset? preset,
}) async => PresetApplyResult.fromJson(
await _object(
await post('/presets/apply', _applyBody(nodeId, presetId, preset)),
),
);