copyWith method
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,
})
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,
);