df_localization library
A package that simplifies adding localization to your Flutter app.
Classes
- ActiveLocale
-
Process-wide active Locale. Updated by each controller's
setLocale, read by ICU plural/select expansion and by RTL/text-direction helpers that need to know the current language without depending on a specific controller. -
Async<
T extends Object> - A Outcome that represents a Resolvable that holds an asynchronous Result.
-
AsyncImpl<
T extends Object> -
AsyncPodBuilder<
T extends Object> - AuthInterface
-
AutoTranslationController<
TRemoteDatabaseInterface extends DatabaseInterface, TCachedDatabaseInterface extends DatabaseInterface, TTranslationInterface extends TranslatorInterface< Object> > - AutoTranslationScope
- BuilderSnapshot
-
ChildPod<
TParent extends Object, TChild extends Object> -
ConcurrentTaskBatch<
T extends Object> - A task batch that executes its collection of tasks concurrently.
-
Config<
TConfigRef extends ConfigRef> - A configuration class that maps placeholder strings to values.
- ConfigFileRef
- A reference to a config file.
-
ConfigManager<
TConfig extends Config< ConfigRef> > - In-memory registry of Config instances, keyed by their ConfigRef.
-
ConfigRef<
TRef, TType> - A reference to a config element.
- DatabaseInterface
-
DisposablePod<
T extends Object> - ErrModel
-
Generated class for
_ErrModel. - ExperimentalAnnotation1
- The class that enables the @experimental1 annotation.
- ExperimentalAnnotation2
- The class that enables the @experimental2 annotation.
- ExperimentalAnnotation3
- The class that enables the @experimental3 annotation.
- FileConfig
- FileConfigManager
- A ConfigManager specialised for FileConfig instances.
- FirebaseAuthBroker
- FirestoreDatabseBroker
-
ForcedAsyncPodListBuilder<
T extends Object> - GoogleTranslatorBroker
- Here
- A utility class for capturing the current code location (file, line, column, member).
-
Lazy<
T extends Object> -
A class that provides lazy initialization for instances of type
T. - LlmTranslatorBroker
-
Vendor-neutral LLM-backed translator. Pass any ChatBroker (Anthropic,
Gemini, OpenAI, or a custom one) and this class drives it through the
same
AiMessage/ChatRequestshapeai_brokeralready exposes — no per-provider message-type clones. - LoginResult
- MultiplePodReducer
- A final class to handle reducing operations for many Pods.
- MustAwaitAllFuturesAnnotation
- The class that enables the @mustAwaitAllFutures annotation.
- MustAwaitAllFuturesOrErrorAnnotation
- The class that enables the @mustAwaitAllFuturesOrError annotation.
- MustBeAnonymousAnnotation
- The class that enables the @mustBeAnonymous annotation.
- MustBeAnonymousOrErrorAnnotation
- The class that enables the @mustBeAnonymousOrError annotation.
- MustBeStrongRefAnnotation
- The class that enables the @mustBeStrongRef annotation.
- MustBeStrongRefOrErrorAnnotation
- The class that enables the @mustBeStrongRefOrError annotation.
- MustHandleReturnAnnotation
- The class that enables the @mustHandleReturn annotation.
- MustHandleReturnOrErrorAnnotation
- The class that enables the @mustHandleReturnOrError annotation.
- NoFuturesAnnotation
- The class that enables the @noFutures annotation.
- NoFuturesOrErrorAnnotation
- The class that enables the @noFuturesOrError annotation.
-
None<
T extends Object> - A Outcome that represents an Option that does not contain a value.
-
Ok<
T extends Object> - A Outcome that represents the success case of a Result, containing a value.
-
OnOptionListSnapshot<
T extends Object> -
OnOptionSnapshot<
T extends Object> -
Option<
T extends Object> - A Outcome that represents an optional value: every Option is either Some and contains a value, or None and does not.
-
Outcome<
T extends Object> - The foundational sealed class for all Outcome types like Option, Result and Resolvable.
- PatternSettings
- How df_config recognises a placeholder in a string.
- PersistentDatabaseBroker
-
PodBuilder<
T extends Object> - PodBuilderCacheManager
- Process-wide value cache for keyed builders (PodBuilder / PodListBuilder).
-
PodBuilderSnapshot<
T extends Object> - PodCollectionBuilder
- Observes a "source of pods" — a source Listenable whose changes imply that the set of inner pods to watch may have changed — and rebuilds when either:
-
PodFinalizerWrapper<
T extends Object> - Auto-disposes its wrapped PodNotifier when the wrapper itself becomes unreachable.
-
PodListBuilder<
T extends Object> -
PodListBuilderSnapshot<
T extends Object> -
PodNotifier<
T extends Object> - An enhanced alternative to ValueNotifier that provides additional lifecycle management capabilities through the ValueListenable.
- PodReducer1
- A class to handle reducing operations for 1 Pod.
- PodReducer2
- A class to handle reducing operations for 2 Pods.
- PodReducer3
- A class to handle reducing operations for 3 Pods.
- PodReducer4
- A class to handle reducing operations for 4 Pods.
- PodReducer5
- A class to handle reducing operations for 5 Pods.
- PodReducer6
- A class to handle reducing operations for 6 Pods.
- PodReducer7
- A class to handle reducing operations for 7 Pods.
-
PodResultBuilder<
T extends Object> -
PodResultBuilderState<
T extends Object> -
PodResultListBuilder<
T extends Object> -
PodResultListBuilderState<
T extends Object> -
PollingPodBuilder<
T extends Object> - PrimaryPatternSettings
- Deprecated alias for PatternSettings.primary.
-
ProtectedPod<
T extends Object> -
A RootPod that protects
addStrongRefListeneranddispose, hiding these methods from external access to prevent misuse or unintended behavior. -
ReducerPod<
T extends Object> - A Pod that listens to changes to existing Pods returned by the responder. When any of these returned Pods update, it recalculates its value using the reducer function, then calls the responder again to refresh Pods to listen to. This recursive behaviour ensures that the Pod continuously listens to new changes from any updated Pods.
- RemoteTranslationController
- A translation controller for apps where translations are produced server-side (or otherwise outside the client) and the client just needs to fetch a flat key/value map per locale.
-
Resolvable<
T extends Object> - A Outcome that represents a value which can be resolved either synchronously Sync or asynchronously Async.
-
ResolvablePodBuilder<
T extends Object> -
ResolvablePodListBuilder<
T extends Object> -
ResolvablePollingPodBuilder<
T extends Object> -
Result<
T extends Object> - A Outcome that represents the result of an operation: every Result is either Ok and contains a success value, or Err and contains an error value.
-
RootPod<
T extends Object> - A Pod that serves as the root of a Pod parent-child chain.
-
SafeCompleter<
T extends Object> - A wrapper around Dart's Completer that prevents it from being completed more than once.
- SecondaryPatternSettings
- Deprecated alias for PatternSettings.secondary.
- SendableAnnotation
- The class that enables the @sendable annotation.
- SendableOrErrorAnnotation
- The class that enables the @sendableOrError annotation.
-
SequencedTaskBatch<
T extends Object> - A batch of tasks designed to be executed sequentially by a TaskSequencer.
-
A SharedPod that protects
addStrongRefListeneranddispose, hiding these methods from external access to prevent misuse or unintended behavior. -
Some<
T extends Object> - A Outcome that represents an Option that contains a value.
-
Sync<
T extends Object> - A Outcome that represents a Resolvable that holds a synchronous Result.
-
SyncImpl<
T extends Object> -
SyncPodBuilder<
T extends Object> -
SyncPodListBuilder<
T extends Object> -
Task<
T extends Object> - A data class representing a single, configured task in a sequence.
-
TaskBatchBase<
T extends Object> - Provides a foundational structure for managing a collection of tasks.
-
TaskSequencer<
T extends Object> - Manages a chain of dependent tasks, ensuring they execute sequentially.
- TranslatedText
- A model class that represents a translated text.
- TranslationController
- TranslationFileReader
- Convenience for loading translation files from disk or asset bundles.
- TranslationManager
-
Process-wide owner of the active translation FileConfig that
String.tr()looks up against. -
TranslatorInterface<
T extends Object> - Unit
-
A type representing a "no value" unit, similar to
voidbut usable in generics. - UnsafeAnnotation
- The class that enables the @unsafe annotation.
- UnsafeOrErrorAnnotation
- The class that enables the @unsafeOrError annotation.
- WeakChangeNotifier
- A class that can be extended or mixed in that provides a change notification API using VoidCallback for notifications. It is a modified version of Flutter's ChangeNotifier that uses WeakReference for its listeners.
Enums
- ConfigFileType
- The supported config file types.
Mixins
-
GenericPodMixin<
T extends Object> - A mixin for managing RootPod and ChildPod.
Extensions
-
AsyncOptionExt
on Async<
Option< T> > - CfOnStringExt on String
-
FlattenAsyncExt2
on Async<
Async< T> > -
FlattenAsyncExt3
on Async<
Async< Async< >T> > -
FlattenAsyncExt4
on Async<
Async< Async< >Async< >T> > -
FlattenAsyncExt5
on Async<
Async< Async< >Async< >Async< >T> > -
FlattenAsyncExt6
on Async<
Async< Async< >Async< >Async< >Async< >T> > -
FlattenAsyncExt7
on Async<
Async< Async< >Async< >Async< >Async< >Async< >T> > -
FlattenAsyncExt8
on Async<
Async< Async< >Async< >Async< >Async< >Async< >Async< >T> > -
FlattenAsyncExt9
on Async<
Async< Async< >Async< >Async< >Async< >Async< >Async< >Async< >T> > -
FlattenErrExt2
on Err<
Err< T> > -
FlattenErrExt3
on Err<
Err< Err< >T> > -
FlattenErrExt4
on Err<
Err< Err< >Err< >T> > -
FlattenErrExt5
on Err<
Err< Err< >Err< >Err< >T> > -
FlattenErrExt6
on Err<
Err< Err< >Err< >Err< >Err< >T> > -
FlattenErrExt7
on Err<
Err< Err< >Err< >Err< >Err< >Err< >T> > -
FlattenErrExt8
on Err<
Err< Err< >Err< >Err< >Err< >Err< >Err< >T> > -
FlattenErrExt9
on Err<
Err< Err< >Err< >Err< >Err< >Err< >Err< >Err< >T> > -
FlattenNoneExt2
on None<
None< T> > -
FlattenNoneExt3
on None<
None< None< >T> > -
FlattenNoneExt4
on None<
None< None< >None< >T> > -
FlattenNoneExt5
on None<
None< None< >None< >None< >T> > -
FlattenNoneExt6
on None<
None< None< >None< >None< >None< >T> > -
FlattenNoneExt7
on None<
None< None< >None< >None< >None< >None< >T> > -
FlattenNoneExt8
on None<
None< None< >None< >None< >None< >None< >None< >T> > -
FlattenNoneExt9
on None<
None< None< >None< >None< >None< >None< >None< >None< >T> > -
FlattenOkExt2
on Ok<
Ok< T> > -
FlattenOkExt3
on Ok<
Ok< Ok< >T> > -
FlattenOkExt4
on Ok<
Ok< Ok< >Ok< >T> > -
FlattenOkExt5
on Ok<
Ok< Ok< >Ok< >Ok< >T> > -
FlattenOkExt6
on Ok<
Ok< Ok< >Ok< >Ok< >Ok< >T> > -
FlattenOkExt7
on Ok<
Ok< Ok< >Ok< >Ok< >Ok< >Ok< >T> > -
FlattenOkExt8
on Ok<
Ok< Ok< >Ok< >Ok< >Ok< >Ok< >Ok< >T> > -
FlattenOkExt9
on Ok<
Ok< Ok< >Ok< >Ok< >Ok< >Ok< >Ok< >Ok< >T> > -
FlattenOptionExt2
on Option<
Option< T> > -
FlattenOptionExt3
on Option<
Option< Option< >T> > -
FlattenOptionExt4
on Option<
Option< Option< >Option< >T> > -
FlattenOptionExt5
on Option<
Option< Option< >Option< >Option< >T> > -
FlattenOptionExt6
on Option<
Option< Option< >Option< >Option< >Option< >T> > -
FlattenOptionExt7
on Option<
Option< Option< >Option< >Option< >Option< >Option< >T> > -
FlattenOptionExt8
on Option<
Option< Option< >Option< >Option< >Option< >Option< >Option< >T> > -
FlattenOptionExt9
on Option<
Option< Option< >Option< >Option< >Option< >Option< >Option< >Option< >T> > -
FlattenResolvableExt2
on Resolvable<
Resolvable< T> > -
FlattenResolvableExt3
on Resolvable<
Resolvable< Resolvable< >T> > -
FlattenResolvableExt4
on Resolvable<
Resolvable< Resolvable< >Resolvable< >T> > -
FlattenResolvableExt5
on Resolvable<
Resolvable< Resolvable< >Resolvable< >Resolvable< >T> > -
FlattenResolvableExt6
on Resolvable<
Resolvable< Resolvable< >Resolvable< >Resolvable< >Resolvable< >T> > -
FlattenResolvableExt7
on Resolvable<
Resolvable< Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >T> > -
FlattenResolvableExt8
on Resolvable<
Resolvable< Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >T> > -
FlattenResolvableExt9
on Resolvable<
Resolvable< Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >Resolvable< >T> > -
FlattenResolvableResulteExt3
on Resolvable<
Result< Result< >T> > -
FlattenResolvableResulteExt4
on Resolvable<
Result< Result< >Result< >T> > -
FlattenResolvableResulteExt5
on Resolvable<
Result< Result< >Result< >Result< >T> > -
FlattenResolvableResulteExt6
on Resolvable<
Result< Result< >Result< >Result< >Result< >T> > -
FlattenResolvableResulteExt7
on Resolvable<
Result< Result< >Result< >Result< >Result< >Result< >T> > -
FlattenResolvableResulteExt8
on Resolvable<
Result< Result< >Result< >Result< >Result< >Result< >Result< >T> > -
FlattenResolvableResulteExt9
on Resolvable<
Result< Result< >Result< >Result< >Result< >Result< >Result< >Result< >T> > -
FlattenResolvableResultExt2
on Resolvable<
Result< T> > -
FlattenResultExt2
on Result<
Result< T> > -
FlattenResultExt3
on Result<
Result< Result< >T> > -
FlattenResultExt4
on Result<
Result< Result< >Result< >T> > -
FlattenResultExt5
on Result<
Result< Result< >Result< >Result< >T> > -
FlattenResultExt6
on Result<
Result< Result< >Result< >Result< >Result< >T> > -
FlattenResultExt7
on Result<
Result< Result< >Result< >Result< >Result< >Result< >T> > -
FlattenResultExt8
on Result<
Result< Result< >Result< >Result< >Result< >Result< >Result< >T> > -
FlattenResultExt9
on Result<
Result< Result< >Result< >Result< >Result< >Result< >Result< >Result< >T> > -
FlattenSomeExt2
on Some<
Some< T> > -
FlattenSomeExt3
on Some<
Some< Some< >T> > -
FlattenSomeExt4
on Some<
Some< Some< >Some< >T> > -
FlattenSomeExt5
on Some<
Some< Some< >Some< >Some< >T> > -
FlattenSomeExt6
on Some<
Some< Some< >Some< >Some< >Some< >T> > -
FlattenSomeExt7
on Some<
Some< Some< >Some< >Some< >Some< >Some< >T> > -
FlattenSomeExt8
on Some<
Some< Some< >Some< >Some< >Some< >Some< >Some< >T> > -
FlattenSomeExt9
on Some<
Some< Some< >Some< >Some< >Some< >Some< >Some< >Some< >T> > -
FlattenSyncExt2
on Sync<
Sync< T> > -
FlattenSyncExt3
on Sync<
Sync< Sync< >T> > -
FlattenSyncExt4
on Sync<
Sync< Sync< >Sync< >T> > -
FlattenSyncExt5
on Sync<
Sync< Sync< >Sync< >Sync< >T> > -
FlattenSyncExt6
on Sync<
Sync< Sync< >Sync< >Sync< >Sync< >T> > -
FlattenSyncExt7
on Sync<
Sync< Sync< >Sync< >Sync< >Sync< >Sync< >T> > -
FlattenSyncExt8
on Sync<
Sync< Sync< >Sync< >Sync< >Sync< >Sync< >Sync< >T> > -
FlattenSyncExt9
on Sync<
Sync< Sync< >Sync< >Sync< >Sync< >Sync< >Sync< >Sync< >T> > -
FutureIterableOkExt
on Future<
Iterable< Ok< >T> > -
FutureIterableSomeExt
on Future<
Iterable< Some< >T> > -
IterableAsyncExt
on Iterable<
Async< T> > -
IterableExt
on Iterable<
T> -
IterableFutureOptionExt
on Iterable<
Future< Option< >T> > -
IterableFutureResultExt
on Iterable<
Future< Result< >T> > -
IterableOkExt
on Iterable<
Ok< T> > -
IterableOptionExt
on Iterable<
Option< T> > -
IterableResolvableExt
on Iterable<
Resolvable< T> > -
IterableResultExt
on Iterable<
Result< T> > -
IterableSomeExt
on Iterable<
Some< T> > -
IterableSyncExt
on Iterable<
Sync< T> > -
MapExt
on Map<
K, V> -
MapOfOptions
on Map<
K, Option< V> > -
MapOfResults
on Map<
K, Result< V> > -
MapOutcomeExt10
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Object> > -
MapOutcomeExt2
on Outcome<
Outcome< Object> > -
MapOutcomeExt3
on Outcome<
Outcome< Outcome< >Object> > -
MapOutcomeExt4
on Outcome<
Outcome< Outcome< >Outcome< >Object> > -
MapOutcomeExt5
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Object> > -
MapOutcomeExt6
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Outcome< >Object> > -
MapOutcomeExt7
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Object> > -
MapOutcomeExt8
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Object> > -
MapOutcomeExt9
on Outcome<
Outcome< Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Outcome< >Object> > -
NamedAsyncExt
on Async<
T> - Adds NamedAsyncExt.named to Async with the same semantics as NamedResultExt.named.
-
NamedResolvableExt
on Resolvable<
T> - Adds NamedResolvableExt.named to Resolvable so both Sync and Async subtypes are addressable through the base type.
-
NamedResultExt
on Result<
T> -
Adds NamedResultExt.named to Result for failure
attribution: if the receiver is an Err that has not yet been labelled by
an upstream
.named(), the label is recorded in Err.breadcrumbs. If it already carries breadcrumbs (an upstream node already claimed the failure), this is a no-op so the originating step keeps its credit. -
NamedSyncExt
on Sync<
T> - Adds NamedSyncExt.named to Sync with the same semantics as NamedResultExt.named.
-
NoneIfEmptyOnListExt
on List<
T> -
NoneIfEmptyOnSetExt
on Set<
T> -
ResolvableOptionExt
on Resolvable<
Option< T> > - StringExt on String
-
SwapAsyncNoneExt
on Async<
None< T> > -
SwapAsyncOkExt
on Async<
Ok< T> > -
SwapAsyncSomeExt
on Async<
Some< T> > -
SwapErrAsyncExt
on Err<
Async< T> > -
SwapErrNoneExt
on Err<
None< T> > -
SwapErrOkExt
on Err<
Ok< T> > -
SwapErrOptionExt
on Err<
Option< T> > -
SwapErrResolvableExt
on Err<
Resolvable< T> > -
SwapErrResultExt
on Err<
Result< T> > -
SwapErrSomeExt
on Err<
Some< T> > -
SwapErrSyncExt
on Err<
Sync< T> > -
SwapNoneAsyncExt
on None<
Async< T> > -
SwapNoneErrExt
on None<
Err< T> > -
SwapNoneOkExt
on None<
Ok< T> > -
SwapNoneOptionExt
on None<
Option< T> > -
SwapNoneResolvableExt
on None<
Resolvable< T> > -
SwapNoneResultExt
on None<
Result< T> > -
SwapNoneSomeExt
on None<
Some< T> > -
SwapNoneSyncExt
on None<
Sync< T> > -
SwapOkAsyncExt
on Ok<
Async< T> > -
SwapOkErrExt
on Ok<
Err< T> > -
SwapOkNoneExt
on Ok<
None< T> > -
SwapOkOptionExt
on Ok<
Option< T> > -
SwapOkResolvableExt
on Ok<
Resolvable< T> > -
SwapOkResultExt
on Ok<
Result< T> > -
SwapOkSomeExt
on Ok<
Some< T> > -
SwapOkSyncExt
on Ok<
Sync< T> > -
SwapOptionAsyncExt
on Option<
Async< T> > -
SwapOptionErrExt
on Option<
Err< T> > -
SwapOptionNoneExt
on Option<
None< T> > -
SwapOptionOkExt
on Option<
Ok< T> > -
SwapOptionResolvableExt
on Option<
Resolvable< T> > -
SwapOptionResultExt
on Option<
Result< T> > -
SwapOptionSomeExt
on Option<
Some< T> > -
SwapOptionSyncExt
on Option<
Sync< T> > -
SwapResolvableNoneExt
on Resolvable<
None< T> > -
SwapResolvableOkExt
on Resolvable<
Ok< T> > -
SwapResolvableSomeExt
on Resolvable<
Some< T> > -
SwapResultAsyncExt
on Result<
Async< T> > -
SwapResultErrExt
on Result<
Err< T> > -
SwapResultNoneExt
on Result<
None< T> > -
SwapResultOkExt
on Result<
Ok< T> > -
SwapResultOptionExt
on Result<
Option< T> > -
SwapResultResolvableExt
on Result<
Resolvable< T> > -
SwapResultSomeExt
on Result<
Some< T> > -
SwapResultSyncExt
on Result<
Sync< T> > -
SwapSomeAsyncExt
on Some<
Async< T> > -
SwapSomeErrExt
on Some<
Err< T> > -
SwapSomeNoneExt
on Some<
None< T> > -
SwapSomeOkExt
on Some<
Ok< T> > -
SwapSomeOptionExt
on Some<
Option< T> > -
SwapSomeResolvableExt
on Some<
Resolvable< T> > -
SwapSomeResultExt
on Some<
Result< T> > -
SwapSomeSyncExt
on Some<
Sync< T> > -
SwapSyncAsyncExt
on Sync<
Async< T> > -
SwapSyncErrExt
on Sync<
Err< T> > -
SwapSyncNoneExt
on Sync<
None< T> > -
SwapSyncOkExt
on Sync<
Ok< T> > -
SwapSyncOptionExt
on Sync<
Option< T> > -
SwapSyncResolvableExt
on Sync<
Resolvable< T> > -
SwapSyncResultExt
on Sync<
Result< T> > -
SwapSyncSomeExt
on Sync<
Some< T> > -
SyncOptionExt
on Sync<
Option< T> > -
ToAsyncExt
on Future<
T> -
ToResolvableExt
on FutureOr<
T> -
ToSafeStreamExt
on Stream<
T> - An extension on Stream to provide a safe way to handle stream events.
- ToSync on T
-
ToUnitOnObjectAsync
on Async<
Object> -
ToUnitOnObjectErr
on Err<
Object> -
ToUnitOnObjectNone
on None<
Object> -
ToUnitOnObjectOk
on Ok<
Object> -
ToUnitOnObjectOption
on Option<
Object> -
ToUnitOnObjectOutcome
on Outcome<
Object> -
ToUnitOnObjectResolvable
on Resolvable<
Object> -
ToUnitOnObjectResult
on Result<
Object> -
ToUnitOnObjectSome
on Some<
Object> -
ToUnitOnObjectSync
on Sync<
Object> -
ToUnitOnVoidAsync
on Async<
void> -
ToUnitOnVoidErr
on Err<
void> -
ToUnitOnVoidNone
on None<
void> -
ToUnitOnVoidOk
on Ok<
void> -
ToUnitOnVoidOption
on Option<
void> -
ToUnitOnVoidOutcome
on Outcome<
void> -
ToUnitOnVoidResolvable
on Resolvable<
void> -
ToUnitOnVoidResult
on Result<
void> -
ToUnitOnVoidSome
on Some<
void> -
ToUnitOnVoidSync
on Sync<
void> -
ToVoidOnAsyncExt
on Async<
T> -
ToVoidOnErrExt
on Err<
T> -
ToVoidOnNoneExt
on None<
T> -
ToVoidOnOkExt
on Ok<
T> -
ToVoidOnOptionExt
on Option<
T> -
ToVoidOnOutcomeExt
on Outcome<
T> -
ToVoidOnResolvableExt
on Resolvable<
T> -
ToVoidOnResultExt
on Result<
T> -
ToVoidOnSomeExt
on Some<
T> -
ToVoidOnSyncExt
on Sync<
T> - TrIcuX on String
- TrOnStringX on String
-
ValueListenableExt
on ValueListenable<
T> -
WrapOnAsyncExt
on Async<
T> -
WrapOnErrExt
on Err<
T> -
WrapOnNoneExt
on None<
T> -
WrapOnOkExt
on Ok<
T> -
WrapOnOptionExt
on Option<
T> - WrapOnOutcomeExt on M
-
WrapOnResolvableExt
on Resolvable<
T> -
WrapOnResultExt
on Result<
T> -
WrapOnSomeExt
on Some<
T> -
WrapOnSyncExt
on Sync<
T>
Constants
- experimental1 → const ExperimentalAnnotation1
- experimental2 → const ExperimentalAnnotation2
- experimental3 → const ExperimentalAnnotation3
- kIsDartLibraryUI → const bool
-
A constatnt that can be used to check if your app is running in a Dart only
or Flutter environment. It's
trueifdart.library.uiis defined andfalseotherwise. - kTranslationVersionSeparator → const String
-
Separates a translation key from the source-text version hash in a
versioned storage key, e.g.
welcome_key@@a1b2c3d4e5f60718. - mustAwaitAllFutures → const MustAwaitAllFuturesAnnotation
- mustAwaitAllFuturesOrError → const MustAwaitAllFuturesOrErrorAnnotation
- mustBeAnonymous → const MustBeAnonymousAnnotation
- mustBeAnonymousOrError → const MustBeAnonymousOrErrorAnnotation
- mustBeStrongRef → const MustBeStrongRefAnnotation
- mustBeStrongRefOrError → const MustBeStrongRefOrErrorAnnotation
- mustHandleReturn → const MustHandleReturnAnnotation
- mustHandleReturnOrError → const MustHandleReturnOrErrorAnnotation
- noFutures → const NoFuturesAnnotation
- noFuturesOrError → const NoFuturesOrErrorAnnotation
-
NONE_UNIT
→ const None<
Unit> -
OK_UNIT
→ const Ok<
Unit> - sendable → const SendableAnnotation
-
Marks a parameter whose value must be sendable through
SendPort. Function arguments must be a top-level function or a static method reference — closures and instance-method tear-offs are rejected because Dart's isolate runtime cannot copy them. - sendableOrError → const SendableOrErrorAnnotation
- Like @sendable but the lint fires as an error rather than a warning.
-
SOME_UNIT
→ const Some<
Unit> - UNIT → const Unit
- unsafe → const UnsafeAnnotation
- unsafeOrError → const UnsafeOrErrorAnnotation
Functions
-
asyncNone<
T extends Object> () → Async< None< T> > -
asyncSome<
T extends Object> (FutureOr< T> value) → Async<Some< T> > -
asyncUnit(
) → Async< Unit> -
bestLocale(
Iterable< Locale> supported, {Iterable<Locale> ? preferred}) → Locale -
Picks the best Locale from
supportedthat matches one of the device's preferred locales. -
combineAsync<
T extends Object> (Iterable< Async< asyncs, {Err<T> >List< onErr(List<T> >Result< allResults)?}) → Async<T> >List< T> > - Combines an iterable of Asyncs into one containing a list of their values.
-
combineOption<
T extends Object> (Iterable< Option< options) → Option<T> >List< T> > - Combines an iterable of Options into one containing a list of their values.
-
combineOutcome<
T extends Object> (Iterable< Outcome< outcomes, {Err<T> >List< onErr(List<Option< >T> >Result< allResults)?}) → Resolvable<Option< >T> >List< Option< >T> > - Combines an iterable of Outcomes into one containing a list of their values.
-
combineResolvable<
T extends Object> (Iterable< Resolvable< resolvables, {Err<T> >List< onErr(List<T> >Result< allResults)?}) → Resolvable<T> >List< T> > - Combines an iterable of Resolvables into one containing a list of their values.
-
combineResult<
T extends Object> (Iterable< Result< results, {Err<T> >List< onErr(List<T> >Result< allResults)?}) → Result<T> >List< T> > - Combines an iterable of Results into one containing a list of their values.
-
combineSync<
T extends Object> (Iterable< Sync< syncs, {Err<T> >List< onErr(List<T> >Result< allResults)?}) → Sync<T> >List< T> > - Combines an iterable of Syncs into one containing a list of their values.
-
getNormalizedLanguageTag(
Locale locale) → String -
getSystemLocale(
) → Locale - The device's primary system Locale.
-
getSystemLocales(
) → List< Locale> - The device's preferred locales in priority order.
-
getTextDirection(
Locale locale) → TextDirection -
The natural TextDirection for
locale. -
isRtlLocale(
Locale locale) → bool -
Whether
localeis a right-to-left language (Arabic, Hebrew, Persian/Farsi, Urdu, Yiddish, Pashto, Sindhi, Uyghur, plus the Thaana / N'Ko / Tifinagh scripts). -
jsonDecodeOrNone<
T extends Object> (dynamic input) → Option< T> -
Parses a JSON
inputinto an object of typeT, returning None on failure. -
letAsOrNone<
T extends Object> (dynamic input) → Option< T> -
Casts
inputto typeT, returning None on failure. -
letAsStringOrNone(
dynamic input) → Option< String> -
Converts
inputto String, returning None on failure. -
letBoolOrNone(
dynamic input) → Option< bool> -
Converts
inputto bool, returning None on failure. -
letDateTimeOrNone(
dynamic input) → Option< DateTime> -
Converts
inputto bool, returning None on failure. -
letDoubleOrNone(
dynamic input) → Option< double> -
Converts
inputto double, returning None on failure. -
letIntOrNone(
dynamic input) → Option< int> -
Converts
inputto int, returning None on failure. -
letIterableOrNone<
T extends Object> (dynamic input) → Option< Iterable< Option< >T> > -
Converts
inputtoIterable<Option<T>>, returning None on failure. -
letListOrNone<
T extends Object> (dynamic input) → Option< List< Option< >T> > - Supported types:
-
letMapOrNone<
K extends Object, V extends Object> (dynamic input) → Option< Map< K, Option< >V> > -
Converts
inputtoMap<K, Option<V>>, returning None on failure. -
letNumOrNone(
dynamic input) → Option< num> -
Converts
inputto num, returning None on failure. -
letOrNone<
T extends Object> (dynamic input) → Option< T> -
Attempts to convert a dynamic
inputto the specified typeT, returning None on failure. -
letSetOrNone<
T extends Object> (dynamic input) → Option< Set< Option< >T> > - Supported types:
-
letUriOrNone(
dynamic input) → Option< Uri> -
Converts
inputto Uri, returning None on failure. -
localeFromString(
String? localeString) → Locale? -
resolvableNone<
T extends Object> () → Resolvable< None< T> > -
resolvableSome<
T extends Object> (T value) → Resolvable< Some< T> > -
resolvableUnit(
) → Resolvable< Unit> -
syncNone<
T extends Object> () → Sync< None< T> > -
syncSome<
T extends Object> (T value) → Sync< Some< T> > -
syncUnit(
) → Sync< Unit> -
translationSourceHash(
String source) → String -
A short, stable, platform-independent hash of
source, rendered as 16 hex characters. -
UNSAFE<
T> (T block()) → T -
Executes a block of code that is considered UNSAFE, allowing the use of
methods like Outcome.unwrap. This function provides no actual safety
guarantees; it only serves as a marker for the
must_use_unsafe_wrapper/_or_errorlint and as a signal to developers that the contained code can throw. -
versionedTranslationKey(
String key, String source) → String -
Builds a content-addressed storage key for a translation entry: the plain
keysuffixed with a short, stable hash of its Englishsourcetext.
Typedefs
-
GenericPod<
T extends Object> = GenericPodMixin< T> - An alias for GenericPod.
-
LazyConstructor<
T extends Object> = Resolvable< T> Function() -
MapOptionPartition<
K, V extends Object> = ({List< K> noneKeys, Map<K, V> someParts}) -
The result of partitioning a
Map<K, Option<V>>. -
MapResultPartition<
K, V extends Object> = ({Map< K, Err< errParts, Map<V> >K, V> okParts}) -
The result of partitioning a
Map<K, Result<V>>. -
OptionPartition<
T extends Object> = ({Iterable< None< noneParts, Iterable<T> >Some< someParts})T> > -
The result of partitioning an
Iterable<Option<T>>. -
Pod<
T extends Object> = RootPod< T> - An alias for Pod.
-
ResolvablePartition<
T extends Object> = ({Iterable< Async< asyncParts, Iterable<T> >Sync< syncParts})T> > -
The result of partitioning an
Iterable<Resolvable<T>>. -
ResultPartition<
T extends Object> = ({Iterable< Err< errParts, Iterable<T> >Ok< okParts})T> > -
The result of partitioning an
Iterable<Result<T>>. -
TAsyncAsync<
T extends Object> = Async< Async< T> > - Represents a nested Async.
-
TAsyncErr<
T extends Object> = Async< Err< T> > - Represents an Async that contains an Err.
-
TAsyncNone<
T extends Object> = Async< None< T> > - Represents an Async that contains a None.
-
TAsyncOk<
T extends Object> = Async< Ok< T> > - Represents an Async that contains an Ok.
-
TAsyncOption<
T extends Object> = Async< Option< T> > - Represents an Async that contains an Option.
-
TAsyncResolvable<
T extends Object> = Async< Resolvable< T> > - Represents an Async that contains a Resolvable.
-
TAsyncResult<
T extends Object> = Async< Result< T> > - Represents an Async that contains a Result.
-
TAsyncSome<
T extends Object> = Async< Some< T> > - Represents an Async that contains a Some.
-
TAsyncSync<
T extends Object> = Async< Sync< T> > - Represents an Async that contains a Sync.
-
TErrAsync<
T extends Object> = Err< Async< T> > - Represents an Err that contains an Async.
-
TErrErr<
T extends Object> = Err< Err< T> > - Represents a nested Err.
-
TErrNone<
T extends Object> = Err< None< T> > - Represents an Err that contains a None.
-
TErrOk<
T extends Object> = Err< Ok< T> > - Represents an Err that contains an Ok.
-
TErrOption<
T extends Object> = Err< Option< T> > - Represents an Err that contains an Option.
-
TErrResolvable<
T extends Object> = Err< Resolvable< T> > - Represents an Err that contains a Resolvable.
-
TErrResult<
T extends Object> = Err< Result< T> > - Represents an Err that contains a Result.
-
TErrSome<
T extends Object> = Err< Some< T> > - Represents an Err that contains a Some.
-
TErrSync<
T extends Object> = Err< Sync< T> > - Represents an Err that contains a Sync.
-
TFetchTranslations
= Future<
Map< Function(Locale locale)String, String> > -
Resolves a flat
key → stringtranslation map for a given Locale. -
TFileReaderFunction
= Future<
String> Function(String filePath) -
TGlobalPod<
T extends Object> = Resolvable< GenericPod< Option< >Result< >T> > -
TNullableReducerFn1<
C extends Object, P1 extends Object> = C Function(GenericPod< P1> p1) -
TNullableReducerFn2<
C extends Object, P1 extends Object, P2 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2) -
TOkAsync<
T extends Object> = Ok< Async< T> > - Represents an Ok that contains an Async.
-
TOkErr<
T extends Object> = Ok< Err< T> > - Represents an Ok that contains an Err.
-
TOkNone<
T extends Object> = Ok< None< T> > - Represents an Ok that contains a None.
-
TOkOk<
T extends Object> = Ok< Ok< T> > - Represents a nested Ok.
-
TOkOption<
T extends Object> = Ok< Option< T> > - Represents an Ok that contains an Option.
-
TOkResolvable<
T extends Object> = Ok< Resolvable< T> > - Represents an Ok that contains a Resolvable.
-
TOkResult<
T extends Object> = Ok< Result< T> > - Represents an Ok that contains a Result.
-
TOkSome<
T extends Object> = Ok< Some< T> > - Represents an Ok that contains a Some.
-
TOkSync<
T extends Object> = Ok< Sync< T> > - Represents an Ok that contains a Sync.
-
TOnBeforeDispose<
T> = void Function(T value)? -
TOnErrorCallback<
T extends Object> = Err< T> Function(Object? error, StackTrace stackTrace) -
TOnOptionBuilder<
T extends Object, TSnapshot extends OnOptionSnapshot< T> > = Widget Function(BuildContext context, TSnapshot snapshot) -
TOnOptionListBuilder<
T extends Object, TSnapshot extends OnOptionListSnapshot< T> > = Widget Function(BuildContext context, TSnapshot snapshot) -
TOnTaskConpletedCallback<
T extends Object> = Resolvable< Unit> Function(Task<T> task, double executionProgress) -
TOnTaskError
= Resolvable<
Object> Function(Err<Object> err) - A function that handles an error from a previous task as a side-effect.
-
TOptionAsync<
T extends Object> = Option< Async< T> > - Represents an Option that contains an Async.
-
TOptionErr<
T extends Object> = Option< Err< T> > - Represents an Option that contains an Err.
-
TOptionNone<
T extends Object> = Option< None< T> > - Represents an Option that contains a None.
-
TOptionOk<
T extends Object> = Option< Ok< T> > - Represents an Option that contains an Ok.
-
TOptionOption<
T extends Object> = Option< Option< T> > - Represents a nested Option.
-
TOptionResolvable<
T extends Object> = Option< Resolvable< T> > - Represents an Option that contains a Resolvable.
-
TOptionResult<
T extends Object> = Option< Result< T> > - Represents an Option that contains a Result.
-
TOptionSome<
T extends Object> = Option< Some< T> > - Represents an Option that contains a Some.
-
TOptionSync<
T extends Object> = Option< Sync< T> > - Represents an Option that contains a Sync.
-
TPodsResponderFn<
T extends Object> = Iterable< GenericPod< Function()T> > - TranslationErrorSink = void Function(String source, Object error, StackTrace stack)
- Signature of the TranslationManager.onError sink.
-
TReducerFn1<
C extends Object, P1 extends Object> = C Function(GenericPod< P1> p1) -
TReducerFn2<
C extends Object, P1 extends Object, P2 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2) -
TReducerFn3<
C extends Object, P1 extends Object, P2 extends Object, P3 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2, GenericPod<P3> p3) -
TReducerFn4<
C extends Object, P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2, GenericPod<P3> p3, GenericPod<P4> p4) -
TReducerFn5<
C extends Object, P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2, GenericPod<P3> p3, GenericPod<P4> p4, GenericPod<P5> p5) -
TReducerFn6<
C extends Object, P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object, P6 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2, GenericPod<P3> p3, GenericPod<P4> p4, GenericPod<P5> p5, GenericPod<P6> p6) -
TReducerFn7<
C extends Object, P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object, P6 extends Object, P7 extends Object> = C Function(GenericPod< P1> p1, GenericPod<P2> p2, GenericPod<P3> p3, GenericPod<P4> p4, GenericPod<P5> p5, GenericPod<P6> p6, GenericPod<P7> p7) -
TResolvableErr<
T extends Object> = Resolvable< Err< T> > - Represents a Resolvable that contains an Err.
-
TResolvableNone<
T extends Object> = Resolvable< None< T> > - Represents a Resolvable that contains a None.
-
TResolvableOk<
T extends Object> = Resolvable< Ok< T> > - Represents a Resolvable that contains an Ok.
-
TResolvableOption<
T extends Object> = Resolvable< Option< T> > - Represents a Resolvable that contains an Option.
-
TResolvableResolvable<
T extends Object> = Resolvable< Resolvable< T> > - Represents a nested Resolvable.
-
TResolvableResult<
T extends Object> = Resolvable< Result< T> > - Represents a Resolvable that contains a Result.
-
TResolvableSome<
T extends Object> = Resolvable< Some< T> > - Represents a Resolvable that contains a Some.
-
TResponderFn1<
P1 extends Object> = (GenericPod< P1> ) Function() -
TResponderFn2<
P1 extends Object, P2 extends Object> = (GenericPod< P1> , GenericPod<P2> ) Function() -
TResponderFn3<
P1 extends Object, P2 extends Object, P3 extends Object> = (GenericPod< P1> , GenericPod<P2> , GenericPod<P3> ) Function() -
TResponderFn4<
P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object> = (GenericPod< P1> , GenericPod<P2> , GenericPod<P3> , GenericPod<P4> ) Function() -
TResponderFn5<
P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object> = (GenericPod< P1> , GenericPod<P2> , GenericPod<P3> , GenericPod<P4> , GenericPod<P5> ) Function() -
TResponderFn6<
P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object, P6 extends Object> = (GenericPod< P1> , GenericPod<P2> , GenericPod<P3> , GenericPod<P4> , GenericPod<P5> , GenericPod<P6> ) Function() -
TResponderFn7<
P1 extends Object, P2 extends Object, P3 extends Object, P4 extends Object, P5 extends Object, P6 extends Object, P7 extends Object> = (GenericPod< P1> , GenericPod<P2> , GenericPod<P3> , GenericPod<P4> , GenericPod<P5> , GenericPod<P6> , GenericPod<P7> ) Function() -
TResultAsync<
T extends Object> = Result< Async< T> > - Represents a Result that contains an Async.
-
TResultErr<
T extends Object> = Result< Err< T> > - Represents a Result that contains an Err.
-
TResultNone<
T extends Object> = Result< None< T> > - Represents a Result that contains a None.
-
TResultOk<
T extends Object> = Result< Ok< T> > - Represents a Result that contains an Ok.
-
TResultOption<
T extends Object> = Result< Option< T> > - Represents a Result that contains an Option.
-
TResultResolvable<
T extends Object> = Result< Resolvable< T> > - Represents a Result that contains a Resolvable.
-
TResultResult<
T extends Object> = Result< Result< T> > - Represents a nested Result.
-
TResultSome<
T extends Object> = Result< Some< T> > - Represents a Result that contains a Some.
-
TResultStream<
T extends Object> = Stream< Result< T> > -
TResultSync<
T extends Object> = Result< Sync< T> > - Represents a Result that contains a Sync.
-
TSomeAsync<
T extends Object> = Some< Async< T> > - Represents a Some that contains an Async.
-
TSomeErr<
T extends Object> = Some< Err< T> > - Represents a Some that contains an Err.
-
TSomeNone<
T extends Object> = Some< None< T> > - Represents a Some that contains a None.
-
TSomeOk<
T extends Object> = Some< Ok< T> > - Represents a Some that contains an Ok.
-
TSomeOption<
T extends Object> = Some< Option< T> > - Represents a Some that contains an Option.
-
TSomeResolvable<
T extends Object> = Some< Resolvable< T> > - Represents a Some that contains a Resolvable.
-
TSomeResult<
T extends Object> = Some< Result< T> > - Represents a Some that contains a Result.
-
TSomeSome<
T extends Object> = Some< Some< T> > - Represents a nested Some.
-
TSomeSync<
T extends Object> = Some< Sync< T> > - Represents a Some that contains a Sync.
-
TSyncAsync<
T extends Object> = Sync< Async< T> > - Represents a Sync that contains an Async.
-
TSyncErr<
T extends Object> = Sync< Err< T> > - Represents a Sync that contains an Err.
-
TSyncNone<
T extends Object> = Sync< None< T> > - Represents a Sync that contains a None.
-
TSyncOk<
T extends Object> = Sync< Ok< T> > - Represents a Sync that contains an Ok.
-
TSyncOption<
T extends Object> = Sync< Option< T> > - Represents a Sync that contains an Option.
-
TSyncResolvable<
T extends Object> = Sync< Resolvable< T> > - Represents a Sync that contains a Resolvable.
-
TSyncResult<
T extends Object> = Sync< Result< T> > - Represents a Sync that contains a Result.
-
TSyncSome<
T extends Object> = Sync< Some< T> > - Represents a Sync that contains a Some.
-
TSyncSync<
T extends Object> = Sync< Sync< T> > - Represents a nested Sync.
-
TTaskHandler<
T extends Object> = TResolvableOption< T> Function(TResultOption<T> previous) -
A function that defines a step in a task sequence.
It receives the result of the
previoustask. - TTransaltionMap = TTranslationMap
- Deprecated misspelling kept for one minor cycle. Prefer TTranslationMap.
-
TTranslationMap
= Map<
String, TranslatedText> -
TValuesReducerFn<
TChild, TParentList> = TChild Function(List< TParentList> parentValues) - TVoidCallback = void Function()