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
|
|
|
|
];
|
|
|
|
|