copyWith method

  1. @override
NetworkStatisticsEntryCall copyWith({
  1. NetworkType? networkType,
  2. int? sentBytes,
  3. int? receivedBytes,
  4. double? duration,
})
override

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

Implementation

@override
NetworkStatisticsEntryCall copyWith({
  NetworkType? networkType,
  int? sentBytes,
  int? receivedBytes,
  double? duration,
}) =>
    NetworkStatisticsEntryCall(
      networkType: networkType ?? this.networkType,
      sentBytes: sentBytes ?? this.sentBytes,
      receivedBytes: receivedBytes ?? this.receivedBytes,
      duration: duration ?? this.duration,
    );