refactor: streamline emergency contact management by removing unused extensions and optimizing BLoC initialization

This commit is contained in:
Achintha Isuru
2026-01-27 12:38:21 -05:00
parent 450683c45c
commit 70f350d216
6 changed files with 62 additions and 112 deletions

View File

@@ -56,7 +56,7 @@ class EmergencyContact extends Equatable {
/// Converts a string value to a [RelationshipType].
static RelationshipType stringToRelationshipType(String? value) {
if (value != null) {
final strVal = value.toUpperCase();
final String strVal = value.toUpperCase();
switch (strVal) {
case 'FAMILY':
return RelationshipType.family;