This repository has been archived on 2025-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
OpenContacts/lib/models/inventory/neos_path.dart
2023-05-12 16:56:38 +02:00

15 lines
No EOL
401 B
Dart

import 'package:contacts_plus_plus/models/asset/record.dart';
class NeosPath {
final String name;
final NeosPath? parent;
final List<NeosPath> children;
final Record? record;
const NeosPath({required this.name, required this.parent, required this.children, required this.record});
String get absolute {
if (parent == null) return name;
return "${parent!.absolute}\\$name";
}
}