jocaagura_domain library

The models library defines a basic abstract class for all domain data.

Classes

AcceptanceClauseModel
Represents an acceptance clause within a healthcare management application.
AddressModel
Represents an address within a healthcare management application or any other domain where address information is required.
AnimalModel
Abstract class representing the model for an animal. This class serves as a blueprint for creating various animal models, encompassing attributes like energy, weight, intelligence, and more.
AppointmentModel
Represents an appointment within a healthcare management application.
AttributeModel<T>
Represents an immutable name–value attribute where value is of type T.
Authenticated
The user is fully authenticated and the session contains a UserModel.
Authenticating
A login or sign-up operation is currently in progress.
Bloc<T>
Implement a lightweight reactive holder that exposes a value and a broadcast stream.
BlocAclInterface
BlocAppVersionInterface
Contract for BLoC modules that manage ModelAppVersion state and persistence.
BlocConnectivity
Reactive controller for connectivity state based on BlocGeneral.
BlocCore<T>
The core class responsible for managing general and module BLoCs.
BlocGeneral<T>
A specialized reactive Bloc that allows multiple named listeners to respond to stream updates.
BlocHttpRequest
Centralized HTTP request bloc based on BlocGeneral.
BlocLoading
BLoC to manage loading states using a reactive String message.
BlocModule
BlocModule defines a contract for disposable BLoC implementations.
BlocOnboarding
BLoC to orchestrate an onboarding flow (sequence of steps).
BlocResponsive
A BLoC for responsive layout metrics and policies.
BlocSession
Centralized BLoC for session flows using SessionState and BlocGeneral.
BlocWsDatabase<T extends Model>
Reactive BLoC for document-centric CRUD over a WebSocket-backed repository.
CheckConnectivityTypeUseCase
Returns only the connection type.
CheckInternetSpeedUseCase
Returns only the internet speed (Mbps).
ConnectivityModel
Represents a network connectivity status in a system.
ContactModel
Represents a contact within a healthcare management application.
DatabaseErrorItems
Common Database-related error definitions used across the domain layer.
DateUtils
Utility class for handling common date and time operations.
DeathRecordModel
Represents a death record within a registry or healthcare management system.
Debouncer
Debounces function calls by executing only the latest scheduled action.
DefaultErrorMapper
Default, conservative error mapper.
DefaultHttpErrorMapper
ErrorMapper especializado para el flujo HTTP.
DeleteDocUseCase<T extends Model>
Deletes a single entity by DeleteParams.docId.
DeleteManyDocsUseCase<T extends Model>
Deletes multiple documents and returns a per-id result map: Right({ id: Either<ErrorItem, Unit>, ... })
DeleteManyParams
Parameters for multi-delete operations.
DeleteParams
Parameters for delete operations.
DentalConditionModel
Represents a dental condition record within an application that manages dental health data.
DetachWatchUseCase<T extends Model>
Decrements the watch ref-count for a given docId.
DiagnosisModel
Represents a medical diagnosis within an application that manages healthcare records.
DisposeWsDatabaseUseCase<T extends Model>
Disposes the repository/gateway stack gracefully.
Either<L, R>
An abstract class representing an Either type, which can hold a value of one of two types: L or R.
EnsureDocUseCase<T extends Model>
Ensures a document exists:
EnsureParams<T extends Model>
Parameters for ensuring a document exists (optionally updating if present).
EntityBloc
An abstract class representing a BLoC (Business Logic Component) for managing entities.
EntityProvider
An abstract class representing a generic entity provider.
EntityService
An abstract base class representing a service for managing entities.
EntityUtil
An abstract base class for utility functions or helpers related to entities.
ErrorItem
Represents a structured domain error.
ErrorMapper
Transversal error mapper to be used by Gateways and Repositories.
ExistsDocUseCase<T extends Model>
Checks whether a document exists by attempting a read and mapping:
FacadeCrudDatabaseUsecases<T extends Model>
Provide a transport-agnostic CRUD facade (no realtime/watch).
FacadeHttpRequestUsecases
Facade aggregating all HTTP request use cases.
FacadeWsDatabaseUsecases<T extends Model>
High-level facade bundling all WS-oriented use cases for a single collection and entity type T extends Model.
FakeHttpRequest
In-memory fake implementation of ServiceHttpRequest for tests and POCs.
FakeHttpRequestConfig
Runtime configuration for FakeHttpRequest.
FakeServiceConnectivity
Fake in-memory ServiceConnectivity for development and tests.
FakeServiceGeolocation
Fake in-memory implementation of ServiceGeolocation for development/testing.
FakeServiceGyroscope
Fake in-memory implementation of ServiceGyroscope for development/testing.
FakeServiceHttp
Fake HTTP service para dev/testing.
FakeServiceNotifications
Fake in-memory implementation of ServiceNotifications for dev/testing.
FakeServicePreferences
Fake in-memory implementation of ServicePreferences for dev/testing.
FakeServiceSession
Simulates a session/auth service for development and tests.
FakeServiceWsDatabase
Fake in-memory WebSocket-like NoSQL database for raw JSON documents.
FakeServiceWsDb
In-memory, WebSocket-like NoSQL database for raw JSON (Map<String, dynamic>).
FinancialMovementModel
Represents an immutable financial movement stored as a scaled integer.
GatewayAuth
Map raw auth service operations to domain-safe results (Either) and forward JSON payloads.
GatewayAuthImpl
Concrete GatewayAuth that wraps a ServiceSession and normalizes results to Either<ErrorItem, Map<String, dynamic>(?)>.
GatewayConnectivity
Low-level connectivity gateway. It exposes raw JSON-like payloads json and wraps failures as ErrorItem.
GatewayConnectivityImpl
Concrete gateway that converts ServiceConnectivity into raw payloads (JSON-like Map<String, dynamic>), deferring domain mapping to the repository layer.
GatewayHttpRequest
GatewayHttpRequestImpl
Default implementation of GatewayHttpRequest that delegates to a low-level ServiceHttpRequest and uses an ErrorMapper to produce domain-level ErrorItem instances.
GatewayWsDatabase
Abstraction to access a JSON-like WebSocket database (canvas domain).
GatewayWsDatabaseImpl
Generic, JSON-first implementation of GatewayWsDatabase that multiplexes a single underlying ServiceWsDatabase stream per docId using BlocGeneral.
GatewayWsDbImpl
JSON-first gateway over a ServiceWsDb that multiplexes one backend subscription per docId and exposes results as Either<ErrorItem, ...>.
GetConnectivitySnapshotUseCase
Returns a fresh combined snapshot of connectivity.
GetCurrentUserUsecase
Returns the currently authenticated user from the repository.
HttpErrorItems
Collection of standard HTTP error representations using ErrorItem.
JocaaguraFakeHttpRequest
In-memory fake HTTP client intended for tests and POCs.
LedgerModel
Represents a financial ledger composed of incomes and expenses.
Left<L, R>
Represents a value of type L in the Either type.
LegalIdModel
A model representing a legal identification record.
LogInSilentlyUsecase
Attempts to restore a session without user interaction.
LogInUserAndPasswordUsecase
Logs a user in using email and password.
LoginWithGoogleUsecase
Initiates a Google sign-in flow through the repository.
LogOutUsecase
Logs the current user out from the system.
MedicalDiagnosisTabModel
Represents a medical diagnosis record in an application that manages patient health data.
MedicalRecordModel
Represents a comprehensive medical record for a patient in a healthcare management system.
MedicalTreatmentModel
Represents a medical treatment record within an application that manages healthcare data.
MedicationModel
Represents a medication prescribed to a patient within a healthcare management application.
Model
A base class for all domain data models.
ModelAcl
Describe an access control (ACL) grant for a user over an app feature.
ModelAclPolicy
Define the minimal, global access policy for an app feature.
ModelAiExecutionConfig
Agnostic execution intent for an AI inference request.
ModelAiMessage
Minimal conversational message for AI interactions.
ModelAiRequest
Canonical AI request portable across providers.
ModelAiResponse
Canonical final AI response for a request.
ModelAppVersion
Immutable app version descriptor used across CI/CD and runtime checks.
ModelAssessment
Represents an immutable assessment composed of multiple ModelLearningItems.
ModelCategory
A minimal model representing a reusable category or tag.
ModelCompetencyStandard
Represents a top-level competency standard (MEN reference).
ModelCompleteFlow
Represent a complete deterministic diagram composed of multiple ModelFlowStep items.
ModelConfigHttpRequest
Immutable HTTP request configuration used across the domain HTTP layer.
ModelCrudLogEntry
Immutable log entry representing a CRUD operation on any entity.
ModelCrudMetadata
Immutable audit metadata associated with a single record.
ModelDocBlock
Minimal block-based content unit for portable docs.
ModelDocDocument
Portable document composed of indexed blocks.
ModelDriveFile
Concrete file payload for the logical drive domain.
ModelDriveFolder
Concrete folder payload for the logical drive domain.
ModelDriveItem
Base real payload for a document resource in the logical drive domain.
ModelFlowCertificate
Auditable wrapper that binds a complete linear flow to certification evidence.
ModelFlowStep
Represent a deterministic flow step that routes by Either outcome.
ModelFlowStepCompletion
Minimal auditable evidence that a linear flow step was completed.
ModelGraph
Example (from tabular data)
ModelGraphAxisSpec
Describes metadata for a simple 2D chart axis.
ModelGroup
Logical group in the Bienvenido domain.
ModelGroupAlias
Represents an email alias bound to a group.
ModelGroupConfig
Technical configuration binding a ModelGroup to the provider.
ModelGroupDynamicMembershipRule
Dynamic membership rule for a group.
ModelGroupLabels
High-level classification labels for a group.
ModelGroupMember
Represents a member bound to a group.
ModelGroupSettings
Snapshot of provider-specific settings for a group.
ModelGroupSyncConfig
Sync configuration for a group.
ModelGroupSyncJob
Represents a single execution of a sync job.
ModelItem
Represents an immutable item (product/service) with metadata, price and attributes.
ModelJsonSchemaDocument
Immutable domain document that stores a complete JSON Schema contract as data.
ModelJsonSchemaReference
Immutable reference between two JSON Schema documents.
ModelLearningGoal
Represents a learning goal that refines a ModelCompetencyStandard.
ModelLearningItem
Multiple-choice learning item linked to performance indicators.
ModelMainMenuModel
Represents a main menu item in an application.
ModelPerformanceIndicator
Smallest performance indicator attached to a ModelLearningGoal.
ModelPoint
Represents a labeled point in 2D space.
ModelPrice
Represents an immutable monetary amount stored in minor units, with its decimal precision and currency.
ModelSheetBook
Logical book that groups normalized tables.
ModelSheetColumn
Structural definition of a normalized table column.
ModelSheetRow
Persisted normalized row payload governed by a table definition.
ModelSheetTable
Structural definition of a normalized sheet table.
ModelVector
A model representing a 2D vector, encapsulating its X (dx) and Y (dy) components.
MoneyUtils
Utilidades transversales para operar sobre listas de movimientos financieros.
MutateDocUseCase<T extends Model>
Reads T, applies a pure transformation, then writes the result back.
MutateParams<T extends Model>
Parameters for read–modify–write mutations (pure transformation).
NetworkErrorItems
Common Network-related error definitions used across the domain layer.
NoParams
Represents the absence of input parameters.
ObituaryModel
Represents an obituary record within a memorial application.
OnboardingState
Immutable state for the onboarding flow.
OnboardingStep
Immutable model describing a single step in the onboarding flow.
PatchDocFieldsUseCase<T extends Model>
Performs a partial JSON merge on top of the current entity:
PatchParams
Parameters for JSON patch operations (partial merge).
PerKeyFifoExecutor<K extends Object>
Executes asynchronous actions in FIFO order per key.
PersonModel
Represents a person within the application.
ReadDocUseCase<T extends Model>
Reads a single entity T by ReadParams.docId.
ReadManyDocsUseCase<T extends Model>
Reads multiple documents and returns a per-id result map: Right({ id: Either<ErrorItem, T>, ... })
ReadManyParams
Parameters for multi-read operations (by ids).
ReadOrDefaultUseCase<T extends Model>
Reads T by docId; if not found, returns the provided default T.
ReadParams
Parameters for read-like operations (single document).
RecoverPasswordUsecase
Starts the password recovery process for the given user's email.
Refreshing
A refresh of the current Authenticated user is in progress.
RefreshSessionUsecase
Refreshes the current session (e.g., renews tokens or claims).
ReleaseDocUseCase<T extends Model>
Forces immediate cleanup of a document channel (logout/teardown/tests).
RepositoryAuth
Repository boundary for authentication: converts JSON payloads from Gateways into domain models (UserModel) and stabilizes failures using Either<ErrorItem, T>.
RepositoryAuthImpl
Concrete RepositoryAuth that adapts JSON payloads from a GatewayAuth into domain models (UserModel) and stabilizes failures with Either.
RepositoryConnectivity
Repository boundary for connectivity features.
RepositoryConnectivityImpl
Default repository that maps raw payloads to domain (ConnectivityModel) and enforces error semantics using an ErrorMapper.
RepositoryHttpRequest
RepositoryHttpRequestImpl
Default implementation of RepositoryHttpRequest.
RepositoryWsDatabase<T extends Model>
Repository abstraction for JSON-over-WebSocket CRUD using domain Models.
RepositoryWsDatabaseImpl<T extends Model>
Generic implementation of RepositoryWsDatabase backed by a GatewayWsDatabase.
RequestContext
Describe an outbound request in a transport-agnostic way.
Represents a value of type R in the Either type.
ScreenSizeConfig
Immutable configuration for responsive thresholds and grid metrics.
ServiceConnectivity
Provides low-level access to connectivity information.
ServiceGeolocation
Abstract service for geolocation operations.
ServiceGyroscope
Abstract service for gyroscope sensor readings.
ServiceHttp
Abstract HTTP service for basic REST operations.
ServiceHttpRequest
ServiceNotifications
Abstract service for local notifications.
ServicePreferences
Abstract service for simple key/value preferences storage.
ServiceSession
Low-level session/auth service boundary.
ServiceWsDatabase<T>
Abstract service for WebSocket-based NoSQL database operations.
ServiceWsDb
JSON-first contract for WebSocket-backed, NoSQL-like data access.
SessionError
An unrecoverable error occurred during a session operation.
SessionErrorItems
Collection of common session/auth domain errors using ErrorItem.
SessionState
Base sealed class for all session states.
SessionUsecases
Aggregates all session-related use cases for convenient injection.
SignatureModel
Represents a digital signature within an application.
SignInUserAndPasswordUsecase
Creates a new account using email and password.
StoreModel
Represents a store with identification, contact data, media URLs, and address.
StreamUseCase<T, P>
Defines a base interface for stream-oriented use cases.
TreatmentPlanModel
Represents a comprehensive treatment plan within a healthcare management application.
Unauthenticated
No authenticated user is present.
Unit
Represents the absence of a meaningful value in a type-safe way.
UseCase<T, P>
Defines the base contract for application use cases.
UsecaseHttpRequestDelete
Use case for executing an HTTP DELETE request through RepositoryHttpRequest.
UsecaseHttpRequestGet
Use case for executing an HTTP GET request through RepositoryHttpRequest.
UsecaseHttpRequestPost
Use case for executing an HTTP POST request through RepositoryHttpRequest.
UsecaseHttpRequestPut
Use case for executing an HTTP PUT request through RepositoryHttpRequest.
UsecaseHttpRequestRetry
Use case for retrying a previously configured HTTP request.
UserModel
Represents a user within the application.
Utils
A utility class providing helper methods for common data operations.
VirtualCrudService
Defines a virtual CRUD-like service used mainly in tests and local simulations.
WatchAuthStateChangesUsecase
Exposes the repository's auth state changes as a stream.
WatchConnectivityUseCase
Emits connectivity updates.
WatchDocUntilUseCase<T extends Model>
Awaits until a watched document satisfies a predicate, then completes.
WatchDocUseCase<T extends Model>
Watches a document in real-time and emits Either<ErrorItem, T>.
WatchParams
Parameters for watch (real-time) operations on a single document.
WebSocketErrorItems
Common WebSocket-related error definitions used across the domain layer.
WriteDocUseCase<T extends Model>
Writes (creates/updates) a single entity at WriteParams.docId.
WriteManyDocsUseCase<T extends Model>
Writes multiple documents and returns a per-id result map: Right({ id: Either<ErrorItem, T>, ... })
WriteManyParams<T extends Model>
Parameters for multi-write (upsert) operations.
WriteParams<T extends Model>
Parameters for write (upsert) operations.
WsDbConfig
Configuration model for FakeServiceWsDatabase.
WsDbErrorMiniMapper
Mini-mapper de errores para Gateways/Repos que consumen ServiceWsDb.
WsDbState<T extends Model>
Immutable state published by BlocWsDatabase.

Enums

AcceptanceClauseEnum
Enum representing the fields of an acceptance clause in the AcceptanceClauseModel.
AnimalTypeEnum
Enumeration representing different types of animals.
AppointmentEnum
Enum representing the fields of an appointment in a healthcare management application.
AssessmentEnum
JSON keys for ModelAssessment. Enum-backed for roundtrip stability.
AttributeEnum
CompetencyStandardEnum
JSON keys for ModelCompetencyStandard. Kept as enum to guarantee roundtrip stability (avoid string typos and allow .name usage).
CompleteFlowEnum
Enumerates the serialized fields of ModelCompleteFlow.
ConnectionTypeEnum
Enum ConnectionTypeEnum lists various types of network connections.
ConnectivityModelEnum
Enum ConnectivityModelEnum defines the properties of ConnectivityModel.
ContactEnum
Enum representing the fields of a contact in a healthcare management application.
CurrencyEnum
Supported currency codes for prices and transactions.
DeathRecordEnum
Enum DeathRecordEnum defines the keys for serializing and deserializing a DeathRecordModel.
DentalConditionEnum
Enum representing the fields of a dental condition in the DentalConditionModel.
DentalIDEnum
Enum representing unique identifiers for dental quadrants.
DentalRegionEnum
Enum representing the various regions of a tooth.
DiagnosisModelEnum
Enum representing the fields of the DiagnosisModel.
ErrorItemEnum
Enum keys used for ErrorItem JSON serialization.
ErrorLevelEnum
Classifies how an error should be handled across the application.
FinancialMovementEnum
Enumerates the JSON field names for FinancialMovementModel.
FlowStepEnum
Enumerates the serialized fields of ModelFlowStep.
HttpMethodEnum
Supported HTTP methods for the transversal HTTP system.
HttpRequestFailureEnum
Technical failure classification for HTTP requests.
HttpRequestLifecycleEnum
High-level lifecycle bucket for HTTP requests.
JsonSchemaReferenceTypeEnum
Canonical reference kinds between schema documents.
LearningGoalEnum
JSON keys for ModelLearningGoal. Kept as enum to guarantee roundtrip stability (avoid string typos and allow .name usage).
LearningItemEnum
JSON keys for ModelLearningItem. Using enum guarantees stable roundtrip.
LedgerEnum
LegalIdEnum
Enum representing the fields of a legal identification model.
LegalIdTypeEnum
Enum representing the types of legal identification documents.
MedicalDiagnosisTabModelEnum
Enum representing the fields of the MedicalDiagnosisTabModel.
MedicalRecordEnum
Enum representing the fields of the MedicalRecordModel.
MedicalTreatmentEnum
Enum representing the fields of the MedicalTreatmentModel.
MedicationEnum
Enum representing the fields of the MedicationModel.
ModelAclEnum
ModelAclPolicyEnum
Enumerates the serialized fields of ModelAclPolicy.
ModelAiExecutionConfigEnum
Stable JSON keys used by ModelAiExecutionConfig.
ModelAiMessageEnum
Stable JSON keys used by ModelAiMessage.
ModelAiMessageRoleEnum
Canonical conversational roles supported in the agnostic AI contract.
ModelAiRequestEnum
Stable JSON keys used by ModelAiRequest.
ModelAiResponseEnum
Stable JSON keys used by ModelAiResponse.
ModelAiTaskTypeEnum
Canonical agnostic AI task kinds.
ModelAppVersionEnum
ModelCategoryEnum
Enumerates the property keys used in ModelCategory.
ModelConfigHttpRequestEnum
Enum keys used for ModelConfigHttpRequest JSON serialization.
ModelCrudLogEntryEnum
JSON keys for ModelCrudLogEntry.
ModelCrudMetadataEnum
Enumerates the JSON keys used by ModelCrudMetadata.
ModelCrudOperationKind
=========================================================================== CRUD LOG ENTRY
ModelDocBlockEnum
Stable JSON keys used by ModelDocBlock.
ModelDocBlockKindEnum
Canonical block kinds supported by the docs module.
ModelDocDocumentEnum
Stable JSON keys used by ModelDocDocument.
ModelDriveFileEnum
Stable JSON keys used by ModelDriveFile.
ModelDriveFolderEnum
Stable JSON keys used by ModelDriveFolder.
ModelDriveItemEnum
Stable JSON keys used by the drive resource models.
ModelDriveKindEnum
Domain classification of a drive resource.
ModelFlowCertificateEnum
Stable JSON keys used by ModelFlowCertificate.
ModelFlowCertificateStateEnum
Lifecycle states of a linear flow certificate.
ModelFlowStepCompletionEnum
Stable JSON keys used by ModelFlowStepCompletion.
ModelGraphAxisSpecEnum
Enum for ModelGraphAxisSpec JSON fields.
ModelGraphEnum
Fields for ModelGraph.
ModelGroupAliasEnum
=========================================================================== GROUP ALIAS
ModelGroupAliasStatus
ModelGroupConfigApiSource
ModelGroupConfigEnum
=========================================================================== GROUP CONFIG
ModelGroupConfigLastSyncStatus
ModelGroupDynamicMembershipRuleEnum
=========================================================================== GROUP DYNAMIC MEMBERSHIP RULE
ModelGroupDynamicMembershipRuleStatus
ModelGroupEnum
=========================================================================== GROUP
ModelGroupKind
ModelGroupLabelsEnum
=========================================================================== GROUP LABELS
ModelGroupMemberEntityType
ModelGroupMemberEnum
=========================================================================== GROUP MEMBER
ModelGroupMemberRole
ModelGroupMemberSource
ModelGroupMemberSubscription
ModelGroupPillar
ModelGroupSettingsEnum
=========================================================================== GROUP SETTINGS
ModelGroupState
=========================================================================== GROUPS – ENUMS
ModelGroupSyncConfigEnum
=========================================================================== GROUP SYNC CONFIG
ModelGroupSyncJobEnum
=========================================================================== GROUP SYNC JOB
ModelGroupSyncJobSource
ModelGroupSyncJobStatus
ModelGroupSyncJobType
ModelGroupSyncLastResult
ModelGroupSyncMode
ModelGroupSyncSchedule
ModelGroupSyncStrategy
ModelItemEnum
Enumerates the JSON field names used by ModelItem.
ModelJsonSchemaDocumentEnum
Stable JSON keys used by ModelJsonSchemaDocument.
ModelJsonSchemaReferenceEnum
Stable JSON keys used by ModelJsonSchemaReference.
ModelPointEnum
Enum for ModelPoint JSON fields.
ModelPriceEnum
Enumerates the JSON field names used by ModelPrice.
ModelSheetBookEnum
Stable JSON keys used by ModelSheetBook.
ModelSheetColumnEnum
Stable JSON keys used by ModelSheetColumn.
ModelSheetColumnTypeEnum
Canonical column types supported by normalized sheet tables.
ModelSheetRowEnum
Stable JSON keys used by ModelSheetRow.
ModelSheetTableEnum
Stable JSON keys used by ModelSheetTable.
ModelVectorEnum
Enum for ModelVector fields, representing the X and Y components of the vector.
ObituaryEnum
Enum representing the fields of an obituary model.
OnboardingStateEnum
Enumerates the JSON keys of OnboardingState to keep a stable contract.
OnboardingStatus
Status for the onboarding flow.
PerformanceIndicatorEnum
JSON keys for ModelPerformanceIndicator. Enum-backed for roundtrip stability.
PerformanceLevel
Performance level aligned with common MEN usage (Colombia).
PersonEnum
Enumerates the properties of a person in the PersonModel.
PostDisposePolicy
Policy to define how getters behave after this BLoC has been disposed.
RoleType
ScreenSizeEnum
Represents coarse-grained device categories for responsive design.
SexEnum
Enumeration representing the gender of an animal.
SignatureEnum
Enum representing the fields of a digital signature in the SignatureModel.
StoreModelEnum
Represents a store with identification, contact data, media URLs, and address.
ToothConditionEnum
Enum representing various conditions of a tooth.
TreatmentPlanEnum
Enum representing the fields of the TreatmentPlanModel.
UserEnum
Enumerates the properties of a user in the UserModel.
WsDbConfigEnum
Enumerates the JSON keys for WsDbConfig.

Extensions

DentalIDExtension on DentalIDEnum
Extension for DentalIDEnum to retrieve numerical IDs for dental quadrants.
LegalIdTypeExtension on LegalIdTypeEnum
Extension for LegalIdTypeEnum to provide human-readable descriptions for the enum values.
RepeatLastValueExtension on Stream<T>
Re-expose a stream as a broadcast stream that seeds each subscription with lastValue, then forwards all subsequent events from the source.

Constants

defaultAddressModel → const AddressModel
A default instance of AddressModel representing a sample address.
defaultCompetencyStandard → const ModelCompetencyStandard
A default instance for tests or placeholders.
defaultConnectivityModel → const ConnectivityModel
Default instance of ConnectivityModel with no connection and zero internet speed.
defaultContactModel → const ContactModel
A default instance of ContactModel used as a placeholder or for testing.
defaultDeathRecord → const DeathRecordModel
A default instance of DeathRecordModel for testing or initialization.
defaultDiagnosisModel → const DiagnosisModel
Default instance of DiagnosisModel used as a placeholder or for testing.
defaultErrorItem → const ErrorItem
Default instance of ErrorItem representing a generic unknown error.
defaultLearningGoal → const ModelLearningGoal
A default instance for tests or placeholders.
defaultLegalIdModel → const LegalIdModel
The default LegalIdModel instance, representing a sample legal identification.
defaultModelCategory → const ModelCategory
Default instance of ModelCategory used for testing or fallback purposes.
defaultModelCompleteFlow → const ModelCompleteFlow
Default instance of ModelCompleteFlow for fallback/testing.
defaultModelFlowStepModel → const ModelFlowStep
Default instance of ModelFlowStep for fallback/testing.
defaultModelPoint → const ModelPoint
Default point for demos/tests: label "A" at (1, 1).
defaultModelPoints → const List<ModelPoint>
Small immutable set of default points for quick samples.
defaultModelPrice → const ModelPrice
Default price model used for testing or fallbacks.
defaultModelVector → const ModelVector
Default instance of ModelVector with both components set to 1.0.
defaultPersonModel → const PersonModel
A default instance of PersonModel for testing or fallback purposes.
defaultPNG64Image → const String
A default instance of SignatureModel used as a placeholder or for testing.
defaultStoreModel → const StoreModel
A default instance of StoreModel for testing or fallback purposes.
defaultUserModel → const UserModel
A default instance of UserModel for testing or fallback purposes.
defaultWsDbConfig → const WsDbConfig
Default configuration instance for the fake WebSocket database.
defaultXAxisSpec → const ModelGraphAxisSpec
Default X axis: title "X", range 0, 10.
defaultYAxisSpec → const ModelGraphAxisSpec
Default Y axis: title "Y", range 0, 100.
kHttpBadRequestErrorItem → const ErrorItem
kHttpCancelledErrorItem → const ErrorItem
kHttpConflictErrorItem → const ErrorItem
kHttpForbiddenErrorItem → const ErrorItem
kHttpGatewayTimeoutErrorItem → const ErrorItem
kHttpNoConnectionErrorItem → const ErrorItem
kHttpNotFoundErrorItem → const ErrorItem
kHttpServerErrorItem → const ErrorItem
kHttpTimeoutErrorItem → const ErrorItem
Errores HTTP / red más comunes estandarizados para el dominio.
kHttpTooManyRequestsErrorItem → const ErrorItem
kHttpUnauthorizedErrorItem → const ErrorItem
kHttpUnknownErrorItem → const ErrorItem
screenSizeConfig → const ScreenSizeConfig
unit → const Unit
Shorthand constant for the single Unit value. Prefer returning unit on success in commands with no payload.
unitX → const ModelVector
Unit vector on X axis (1, 0).
unitY → const ModelVector
Unit vector on Y axis (0, 1).

Properties

defaultAcceptanceClauseModel AcceptanceClauseModel
Default instance of AcceptanceClauseModel used as a placeholder or for testing.
final
defaultAppointmentModel AppointmentModel
A default instance of AppointmentModel used as a placeholder or for testing.
final
defaultMedicalRecordModel MedicalRecordModel
Default instance of MedicalRecordModel used as a placeholder or for testing.
final
defaultMedicalTreatmentModel MedicalTreatmentModel
Default instance of MedicalTreatmentModel used as a placeholder or for testing.
final
defaultMedicationModel MedicationModel
Default instance of MedicationModel used for testing or as a placeholder.
final
defaultMMedicalDiagnosisModel MedicalDiagnosisTabModel
Default instance of MedicalDiagnosisTabModel used for testing or as a placeholder.
getter/setter pair
defaultModelAssessment ModelAssessment
Default instance of ModelAssessment for tests or fallback scenarios.
final
defaultModelItem ModelItem
Default instance of ModelItem useful for test/fallback.
final
defaultModelLearningItem ModelLearningItem
Default instance of ModelLearningItem for tests or fallback scenarios.
final
defaultMovement FinancialMovementModel
Default sample instance for initialization or tests.
final
defaultObituary ObituaryModel
Default instance of ObituaryModel used for testing and initialization.
final
defaultOdontologistSignature SignatureModel
final
defaultPatientSignature SignatureModel
final
defaultSignatureModel SignatureModel
final
defaultTreatmentPlanModel TreatmentPlanModel
Default instance of TreatmentPlanModel used as a placeholder or for testing.
getter/setter pair
dentalConditionModelDefault DentalConditionModel
Default instance of DentalConditionModel used as a placeholder or for testing.
final

Functions

attributeModelFromJson<T>(Map<String, dynamic> json, T fromJsonT(dynamic)) AttributeModel<T>
attributeModelfromJson<T>(Map<String, dynamic> json, T fromJsonT(dynamic)) AttributeModel<T>
Deserializes an AttributeModel of type T using a converter for the value.
defaultAutoAdvancePolicy(NavCause cause, OnboardingStep step) bool
defaultExpenseLedger2024({required int rentMonthly, required int utilitiesMonthly, required int groceriesMonthly, required int transportMonthly, required int entertainmentMonthly}) List<FinancialMovementModel>
Minimal expense ledger for 2024: one record per category per month.
defaultIncomeLedger2024({required int salaryMonthly}) List<FinancialMovementModel>
Minimal income ledger for 2024: one salary entry per month (25th).
defaultLedgerModel({String region = 'Colombia', int salaryMonthly = 3500000, int rentMonthly = 1500000, int utilitiesMonthly = 250000, int groceriesMonthly = 260000, int transportMonthly = 160000, int entertainmentMonthly = 100000}) LedgerModel
Builds a lightweight demo ledger for 2024 in Colombia.
defaultModelGraph({String title = 'Default Graph', String subtitle = 'Sample points A..C', String description = 'Demo dataset with 3 points'}) ModelGraph
Graph model holding axis specs and a read-only list of points.
demoPizzaPrices2024Graph({String region = 'LATAM — Región Andina'}) ModelGraph
Demo graph of pizza prices for 2024 (LATAM — Región Andina).
getEnumValueFromString(String description) LegalIdTypeEnum
Retrieves a LegalIdTypeEnum value based on its description.

Typedefs

AutoAdvancePolicy = bool Function(NavCause cause, OnboardingStep step)
BlocStepper = BlocOnboarding
JocaDateUtils = DateUtils
Public alias to avoid name collision with Flutter's DateUtils (material).
ModelAttribute<T> = AttributeModel<T>
Alias for backwards compatibility.
ModelFinancialMovement = FinancialMovementModel
Alias for domain compatibility.
ModelLedger = LedgerModel
Alias for domain compatibility.
ModelStore = StoreModel
Alias for domain compatibility.
OnEnterResult = FutureOr<Either<ErrorItem, Unit>>
Expected result when entering an onboarding step.

Exceptions / Errors

FakeHttpBusinessException