Add explicit types and improve type safety across codebase
This commit adds explicit type annotations to variables, function parameters, and return types throughout the codebase, particularly in widget trees, Bloc logic, and repository implementations. The changes improve code readability, maintainability, and type safety, and align with Dart best practices. No business logic was changed.
This commit is contained in:
@@ -24,9 +24,9 @@ class HomeRepositoryMock {
|
||||
///
|
||||
/// Returns a tuple of (businessName, photoUrl).
|
||||
(String, String?) getUserSession() {
|
||||
final session = ClientSessionStore.instance.session;
|
||||
final businessName = session?.business?.businessName ?? 'Your Company';
|
||||
final photoUrl = session?.userPhotoUrl;
|
||||
final ClientSession? session = ClientSessionStore.instance.session;
|
||||
final String businessName = session?.business?.businessName ?? 'Your Company';
|
||||
final String? photoUrl = session?.userPhotoUrl;
|
||||
return (businessName, photoUrl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user