copyWith method

DeviceUpdateData copyWith({
  1. String? displayName,
  2. DeviceAddress? address,
})

Implementation

DeviceUpdateData copyWith({
  String? displayName,
  DeviceAddress? address,
}) {
  return DeviceUpdateData(
    displayName: displayName ?? this.displayName,
    address: address ?? this.address,
  );
}