brick_base library
Brick Base
A production-ready base package providing:
- Secure token management
- API client with Dio
- Exception handling
- Useful extensions for BuildContext, String, and DateTime
Classes
- ApiClient
- Dio-based API Client with token management and error handling
-
ApiResponse<
T> - Generic API response wrapper
-
Failure<
S, E extends AppException> -
Result<
S, E extends AppException> - SecureStorageService
- Secure storage service for tokens and sensitive data
-
Success<
S, E extends AppException>
Extensions
Exceptions / Errors
- ApiException
- API/Network related exceptions
- AppError
- Generic application exception
- AppException
- AuthException
- Authentication related exceptions
- ParseException
- Parse/Serialization exceptions
- StorageException
- Data/Storage related exceptions