flutter_stasis_core library

Classes

Command<F, R>
Unit of executable work that returns CommandResult.
CommandAction
Encapsulates command execution flow for async stasis results.
CommandExecutionScope
Mutable execution context used by command policies.
CommandFailure<F, R>
Failed command output.
CommandResult<F, R>
Result contract for command execution independent from external FP libs.
CommandSuccess<F, R>
Successful command output.
ErrorState<F, S>
Error state with failure.
InitialState<F, S>
Initial state.
LoadingState<F, S>
Loading state.
MappedCommand<F, I, O>
Decorates a command by mapping the successful value.
SafeData<T>
Runtime-managed field for short-lived or sensitive data.
SafeDataPolicy
Retention and logging rules for SafeData.
StateFailure
Base failure contract used by stasis command/state abstractions.
StateObject<F, S, Self extends StateObject<F, S, Self>>
Immutable state object owned by a single view model/screen.
SuccessState<F, S>
Success state with data.
TaskCommand<F, R>
Adapts a function into a Command.
ViewModelState<F, S>
Canonical state lifecycle used by view models.

Enums

CommandPolicy
Concurrency strategy used while executing commands.
InternalState
Discriminant for ViewModelState runtime phase.
SafeDataClearReason
Records why the value was cleared.
SafeDataLogStrategy
Controls how a safe field should appear in logs and diagnostics.
SafeDataPersistence
Declares whether a safe field may be persisted.
SafeDataStatus
Describes the externally visible lifecycle of a safe field.

Extensions

CommandMapX on Command<F, R>
Helpers for command composition.

Typedefs

SafeDataNow = DateTime Function()
Clock callback used by SafeData to evaluate expiration deterministically.

Exceptions / Errors

CommandContractViolationError
Programming error thrown when a Command breaks its contract.