RemoteDevToolsMiddleware<State> constructor
RemoteDevToolsMiddleware<State> (
- String _host, {
- ActionDecoder? actionDecoder,
- ActionEncoder? actionEncoder,
- StateEncoder<
State> ? stateEncoder, - SocketClusterWrapper? socket,
- String instanceName = 'flutter',
Implementation
RemoteDevToolsMiddleware(
this._host, {
ActionDecoder? actionDecoder,
ActionEncoder? actionEncoder,
StateEncoder<State>? stateEncoder,
SocketClusterWrapper? socket,
this.instanceName = 'flutter',
}) {
this.actionEncoder = actionEncoder ?? JsonActionEncoder;
this.actionDecoder = actionDecoder ?? NopActionDecoder;
this.stateEncoder = stateEncoder ?? JsonStateEncoder;
this.socket = socket ?? SocketClusterWrapper('ws://$_host/socketcluster/');
}