copyWith method

ServerState copyWith({
  1. HttpServer? server,
  2. bool? isServerActive,
})

Implementation

ServerState copyWith({
  HttpServer? server,
  bool? isServerActive,
}) {
  return ServerState(
    server: server ?? this.server,
    isServerActive: isServerActive ?? this.isServerActive,
  );
}