copyWith method

ZebraDevice copyWith({
  1. String? ipAddress,
  2. String? name,
  3. bool? connected,
  4. bool? isWifi,
  5. String? status,
  6. Color? color,
})

Implementation

ZebraDevice copyWith(
    {String? ipAddress,
    String? name,
    bool? connected,
    bool? isWifi,
    String? status,
    Color? color}) {
  return ZebraDevice(
      address: ipAddress ?? this.address,
      name: name ?? this.name,
      connected: connected ?? this.connected,
      isWifi: isWifi ?? this.isWifi,
      status: status ?? this.status,
      color: color ?? this.color);
}