setEffect method
Applies effect to the local video track trackId, releasing whichever
track was effected before.
Returns once the platform has taken the command; status reaches XCameraEffectPhase.active when effected frames flow. XCameraEffect.none is clear.
Implementation
@override
Future<void> setEffect(String trackId, XCameraEffect effect) =>
effect == XCameraEffect.none
? clear()
: _command(
'setEffect',
(generation) => {
'trackId': trackId,
'effect': effect.name,
'generation': generation,
},
);