docs/concept/connector.md
It expresses a data connection relationship of how to read small data from a big data, and how to synchronize to big data when the small data is modified。
It is the key to a centralized Reducer that can be assembled automatically by a multi-level, multi-module, small Reducer
It is used in the configuration Dependencies, in the configuration we have solidified the connection between the large component and the small component, so we do not need to pass in any dynamic parameters when we use the small component.
Sample Code
class DetialState {
Profile profile;
String message;
}
ConnOp<DetialState, String> messageConnector() {
return ConnOp<DetialState, String>(
get: (DetialState state) => state.message,
set: (DetialState state, String message) => state.message = message,
);
}