copyWith method

DeviceRecord copyWith({
  1. String? label,
  2. bool? revoked,
})

A copy with label and/or revoked changed. The copy carries no signature: the writer must re-sign it.

Implementation

DeviceRecord copyWith({String? label, bool? revoked}) => DeviceRecord(
      deviceId: deviceId,
      publicKey: publicKey,
      label: label ?? this.label,
      pairedAt: pairedAt,
      revoked: revoked ?? this.revoked,
    );