reduce method

  1. @override
ServerState reduce()

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;
}