withoutTerminal method

  1. @override
ID withoutTerminal()
override

Naked ID: name@address

Implementation

@override
ID withoutTerminal() {
  // check old terminal (device)
  String? device = terminal;
  if (device == null/* || device.isEmpty*/) {
    // nothing changed
    return this;
  }
  // create new ID without terminal
  return ID.create(name: name, address: address);
}