This repository has been archived on 2024-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
dialer/lib/classes/contactClass.dart

27 lines
568 B
Dart
Raw Normal View History

2024-10-25 11:26:44 +00:00
// contactClass.dart
2024-09-16 15:07:04 +00:00
class Contact {
final String name;
final String phoneNumber;
final bool isFavorite;
final bool isLocked;
2024-10-25 11:26:44 +00:00
final String? publicKey;
2024-09-16 15:07:04 +00:00
2024-10-25 11:26:44 +00:00
Contact(
this.name,
this.phoneNumber, {
this.isFavorite = false,
this.isLocked = false,
this.publicKey,
});
2024-09-16 15:07:04 +00:00
}
2024-10-25 11:26:44 +00:00
// Sample contacts list
List<Contact> contacts = [
Contact('Alice', '1234567890'),
Contact('Bob', '0987654321', isFavorite: true, publicKey: 'ABCD...WXYZ'),
Contact('Charlie', '5555555555', isLocked: true),
// Add more contacts as needed
];