copy method

BluetoothDevice copy({
  1. String? id,
  2. String? name,
  3. int? type,
  4. String? alias,
  5. BondState? bondState,
})

Implementation

BluetoothDevice copy({
  String? id,
  String? name,
  int? type,
  String? alias,
  BondState? bondState,
}) {
  return BluetoothDevice(
    id: id ?? this.id,
    name: name ?? this.name,
    type: type ?? this.type,
    alias: alias ?? this.alias,
    bondState: bondState ?? this.bondState,
  );
}