copyWith method

NetworkStatistics copyWith({
  1. int? sinceDate,
  2. List<NetworkStatisticsEntry>? entries,
  3. dynamic extra,
  4. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

NetworkStatistics copyWith({
  int? sinceDate,
  List<NetworkStatisticsEntry>? entries,
  dynamic extra,
  int? clientId,
}) =>
    NetworkStatistics(
      sinceDate: sinceDate ?? this.sinceDate,
      entries: entries ?? this.entries,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );