reduce method
The method that returns the new state.
Implementation
@override
ServerState reduce() {
state.sink!.add(jsonEncode({
'type': InspectorServerMessageType.action.name,
'payload': {
'actionId': actionId,
'params': params,
},
}));
return state;
}