copyWith method

SocketState copyWith({
  1. bool? isWorking,
  2. String? error,
  3. String? accion,
  4. String? parametroUi,
  5. bool? inicializo,
  6. List<Map<String, dynamic>>? lstMensajes,
  7. String? coleccionActualizada,
  8. String? socketChannelMensajeRecebido,
  9. SocketServerStatusAuth? serverStatus,
  10. int? mensajesSinLeer,
})

Implementation

SocketState copyWith({
  bool? isWorking,
  String? error,
  String? accion,
  String? parametroUi,
  bool? inicializo,
  List<Map<String, dynamic>>? lstMensajes,
  String? coleccionActualizada,
  String? socketChannelMensajeRecebido,
  SocketServerStatusAuth? serverStatus,
  int? mensajesSinLeer,
}) => SocketState(
  isWorking: isWorking ?? this.isWorking,
  error: error ?? this.error,
  accion: accion ?? this.accion,
  parametroUi: parametroUi ?? this.parametroUi,
  inicializo: inicializo ?? this.inicializo,
  lstMensajes: lstMensajes ?? this.lstMensajes,
  coleccionActualizada: coleccionActualizada ?? this.coleccionActualizada,
  socketChannelMensajeRecebido:
      socketChannelMensajeRecebido ?? this.socketChannelMensajeRecebido,
  serverStatus: serverStatus ?? this.serverStatus,
  mensajesSinLeer: mensajesSinLeer ?? this.mensajesSinLeer,
);