RemoteDevToolsMiddleware<State> constructor

RemoteDevToolsMiddleware<State>(
  1. String _host, {
  2. ActionDecoder? actionDecoder,
  3. ActionEncoder? actionEncoder,
  4. StateEncoder<State>? stateEncoder,
  5. SocketClusterWrapper? socket,
  6. 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/');
}