_common library

Classes

AnsiStyle
A class that provides a way to style strings with ANSI escape codes.
Async<T extends Object>
A Outcome that represents a Resolvable that holds an asynchronous Result.
AsyncImpl<T extends Object>
BoolList
A space-efficient list of boolean values.
CanonicalizedMap<C, K, V>
A map whose keys are converted to canonical values of type C.
CaseInsensitiveEquality
String equality that's insensitive to differences in ASCII case.
CombinedIterableView<T>
A view of several iterables combined sequentially into a single iterable.
CombinedListView<T>
A view of several lists combined into a single list.
CombinedMapView<K, V>
Returns a new map that represents maps flattened into a single map.
Completer<T>
A way to produce Future objects and to complete them later with a value or error.
Component
A base class for components that are equatable. Components should extend this class to be used in the ECS system.
ConcurrentTaskBatch<T extends Object>
A task batch that executes its collection of tasks concurrently.
DateTimeUtils
A collection of static utility methods for performing aggregate calculations on lists of DateTime objects.
DeepCollectionEquality
Deep equality on collections.
DefaultEntity
A predefined entity recommended to use as the default group entity for dependencies. This entity can be utilized when no specific group is defined, allowing for a fallback option that simplifies dependency retrieval and management in the DI container.
DefaultEquality<E>
Equality of objects that compares only the natural equality of the objects.
DelegatingIterable<E>
An Iterable that delegates all operations to a base iterable.
DelegatingList<E>
A List that delegates all operations to a base list.
DelegatingMap<K, V>
A Map that delegates all operations to a base map.
DelegatingQueue<E>
A Queue that delegates all operations to a base queue.
DelegatingSet<E>
A Set that delegates all operations to a base set.
DevEntity
A predefined entity recommended to use as the development group entity for dependencies. This entity is useful for managing services that are intended for development purposes, such as debugging tools, mock services, or any other resources that assist during the development process. It helps isolate development-specific.
DI
DIBase
Base class for the dependency injection container
DIRegistry
Registry for storing and managing dependencies by runtime type and a group entity.
Entity
An entity is a uniquely identifiable object that serves as a container or identifier for components in a Dependency Injection (DI) or Entity-Component-System (ECS) framework.
Equality<E>
A generic equality relation on objects.
EqualityBy<E, F>
Equality of objects based on derived values.
EqualityMap<K, V>
A Map whose key equality is determined by an Equality object.
EqualitySet<E>
A Set whose key equality is determined by an Equality object.
ErrModel
Generated class for _ErrModel.
EventSink<T>
A Sink that supports adding errors.
Future<T>
The result of an asynchronous computation.
FutureOr<T>
A type representing values that are either Future<T> or T.
GenericEntity<T>
GlobalEntity
A predefined entity recommended to use as the global Entity entity for dependencies. Use This entity for dependencies that need to be accessible throughout the entire application, regardless of the current scope or context. This is ideal for singleton services or configurations that should remain consistent across all parts of the application.
HeapPriorityQueue<E>
Heap based priority queue.
Here
A utility class for capturing the current code location (file, line, column, member).
IdentityEquality<E>
Equality of objects that compares only the identity of the objects.
Immutable
Used to annotate a class.
IterableEquality<E>
Equality on iterables.
IterableZip<T>
Iterable that iterates over lists of values from other iterables.
Lazy<T extends Object>
A class that provides lazy initialization for instances of type T.
ListEquality<E>
Equality on lists.
ListSlice<E>
A list view of a range of another list.
Log
LogItem
MapEquality<K, V>
Equality on maps.
MapKeySet<E>
An unmodifiable Set view of the keys of a Map.
MapValueSet<K, V>
Creates a modifiable Set view of the values of a Map.
MultiEquality<E>
Combines several equalities into a single equality.
MultiStreamController<T>
An enhanced stream controller provided by Stream.multi.
None<T extends Object>
A Outcome that represents an Option that does not contain a value.
NonGrowableListMixin<E>
Mixin class that implements a throwing version of all list operations that change the List's length.
NonGrowableListView<E>
A fixed-length list.
Ok<T extends Object>
A Outcome that represents the success case of a Result, containing a value.
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.
PollingStreamService<TData extends Object>
PriorityQueue<E>
A priority queue is a priority based work-list of elements.
ProdEntity
A predefined entity recommended to use as the production group entity for dependencies. This entity is intended for services that are specific to the production environment, ensuring that production-only configurations or resources are appropriately managed and distinguished from other environments (like development or testing).
QueueList<E>
A class that efficiently implements both Queue and List.
RecordUse
Annotates a static method to be recorded.
Required
Used to annotate a named parameter p in a method or function f.
Resolvable<T extends Object>
A Outcome that represents a value which can be resolved either synchronously Sync or asynchronously Async.
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.
SafeCompleter<T extends Object>
A wrapper around Dart's Completer that prevents it from being completed more than once.
SequencedTaskBatch<T extends Object>
A batch of tasks designed to be executed sequentially by a TaskSequencer.
Service
SessionEntity
A predefined entity recommended to use as the global group entity for dependencies. Use This entity for dependencies that need to be accessible throughout the entire application, regardless of the current scope or context. This is ideal for singleton services or configurations that should remain consistent across all parts of the application.
SetEquality<E>
Equality of sets.
Some<T extends Object>
A Outcome that represents an Option that contains a value.
Stream<T>
A source of asynchronous data events.
StreamConsumer<S>
Abstract interface for a "sink" accepting multiple entire streams.
StreamController<T>
A controller with the stream it controls.
StreamIterator<T>
An Iterator-like interface for the values of a Stream.
StreamService<TData extends Object>
StreamSink<S>
A object that accepts stream events both synchronously and asynchronously.
StreamSubscription<T>
A subscription on events from a Stream.
StreamTransformer<S, T>
Transforms a Stream.
StreamTransformerBase<S, T>
Base class for implementing StreamTransformer.
StreamUtils
A collection of static utility methods for working with Stream.
StreamView<T>
Stream wrapper that only exposes the Stream interface.
StringToDurationConverter
A utility to safely parse a string into a Duration.
Sync<T extends Object>
A Outcome that represents a Resolvable that holds a synchronous Result.
SynchronousStreamController<T>
A stream controller that delivers its events synchronously.
SyncImpl<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.
TestEntity
A predefined entity recommended to use as the test group entity for dependencies. This entity is designated for managing services that are utilized during testing, allowing for easy access to mock dependencies, test doubles, or any configurations necessary for unit tests and integration tests. It ensures that test services do not interfere with the application's production or development dependencies.
ThemeEntity
A predefined entity recommended to use as the theme group entity for dependencies. This entity is suitable for managing theme-related services or configurations that control the application's visual appearance. It allows for easy access and modification of UI themes, such as light or dark modes.
Timer
A countdown timer that can be configured to fire once or repeatedly.
TypeEntity
Constructs a Entity representation by replacing occurrences of Object or dynamic in the baseType with corresponding values from subTypes. The replacements are applied sequentially based on their order in subTypes.
UnionSet<E>
A single set that provides a view of the union over a set of sets.
UnionSetController<E>
A controller that exposes a view of the union of a collection of sets.
UniqueEntity
Creates a new UniqueEntity with a unique ID.
Unit
A type representing a "no value" unit, similar to void but usable in generics.
UnmodifiableListView<E>
An unmodifiable List view of another List.
UnmodifiableMapMixin<K, V>
Mixin class that implements a throwing version of all map operations that change the Map.
UnmodifiableMapView<K, V>
View of a Map that disallow modifying the map.
UnmodifiableSetMixin<E>
Mixin class that implements a throwing version of all set operations that change the Set.
UnmodifiableSetView<E>
An unmodifiable set.
UnorderedIterableEquality<E>
Equality of the elements of two iterables without considering order.
UserEntity
dependencies. This entity is designed for managing dependencies that are user-specific, such as user preferences, settings, or any other data that varies from user to user. It helps organize services related to user management.
UseResult
See useResult for more details.
Waiter<T>
Manages a collection of operations for deferred, batched execution.
World
Manages entities and their associated components, facilitating the creation, addition, querying, updating, and removal of components within an Entity-Component-System (ECS) framework.
WorldEntity
Represents an entity with components in the ECS/World system. Manages dependencies and allows retrieval of a specific component.
Zone
A zone represents an environment that remains stable across asynchronous calls.
ZoneDelegate
An adapted view of the parent zone.
ZoneSpecification
A parameter object with custom zone function handlers for Zone.fork.

Enums

ServiceState

Mixins

PollingStreamServiceMixin<TData extends Object>
ServiceMixin
StreamServiceMixin<TData extends Object>
SupportsChildrenMixin
SupportsConstructorsMixin
A mixin that provides methods for working with constructors of dependencies, using generic types for type resolution.
SupportsConstructorsMixinK
A mixin that provides methods for working with constructors of dependencies, using Entity for type resolution.
SupportsConstructorsMixinT
A mixin that provides methods for working with constructors of dependencies, using Type for type resolution.
SupportsMixinK
A mixin that provides methods for working with dependencies, using Entity for type resolution.
SupportsMixinT
A mixin that provides methods for working with dependencies, using Type for type resolution.
SupportsServiceMixin
SupportsUnregisterAll
A mixin that provides a method to unregister all dependencies.

Extensions

AsyncOptionExt on Async<Option<T>>
ComparatorExtension on Comparator<T>
Extensions on comparator functions.
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>>>>>>>>>
FutureExtensions on Future<T>
Convenience methods on futures.
FutureIterable on Iterable<Future<T>>
FutureIterableOkExt on Future<Iterable<Ok<T>>>
FutureIterableSomeExt on Future<Iterable<Some<T>>>
FutureOrExt on FutureOr<T>
Convenience methods for inspecting and converting a FutureOr.
FutureRecord2 on (Future<T1>, Future<T2>)
Parallel operations on a record of futures.
FutureRecord3 on (Future<T1>, Future<T2>, Future<T3>)
Parallel operations on a record of futures.
FutureRecord4 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>)
Parallel operations on a record of futures.
FutureRecord5 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>)
Parallel operations on a record of futures.
FutureRecord6 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>)
Parallel operations on a record of futures.
FutureRecord7 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>)
Parallel operations on a record of futures.
FutureRecord8 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>)
Parallel operations on a record of futures.
FutureRecord9 on (Future<T1>, Future<T2>, Future<T3>, Future<T4>, Future<T5>, Future<T6>, Future<T7>, Future<T8>, Future<T9>)
Parallel operations on a record of futures.
IterableAsyncExt on Iterable<Async<T>>
IterableComparableExtension on Iterable<T>
Extensions that apply to iterables of Comparable elements.
IterableDoubleExtension on Iterable<double>
Extension on iterables of double.
IterableExt on Iterable<T>
IterableExtension on Iterable<T>
Extensions that apply to all iterables.
IterableFutureOptionExt on Iterable<Future<Option<T>>>
IterableFutureResultExt on Iterable<Future<Result<T>>>
IterableIntegerExtension on Iterable<int>
Extension on iterables of integers.
IterableIterableExtension on Iterable<Iterable<T>>
Extensions on iterables whose elements are also iterables.
IterableNullableExtension on Iterable<T?>
Extensions that apply to iterables with a nullable element type.
IterableNumberExtension on Iterable<num>
Extensions that apply to iterables of numbers.
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>>
ListComparableExtensions on List<E>
Various extensions on lists of comparable elements.
ListExtensions on List<E>
Various extensions on lists of arbitrary elements.
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>>>>>>>>>
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>
TryCallOnFunctionExt on Function
Provides a safe, dynamic invocation method for any Function.
ValueOfOnEnumExtension on Iterable<T>
Provides a safe, string-based lookup method for enum iterables.
WithAnsiStyleOnStringExtension on String
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

alwaysThrows → const _AlwaysThrows
Used to annotate a function f. Indicates that f always throws an exception. Any functions that override f, in class inheritance, are also expected to conform to this contract.
awaitNotRequired → const _AwaitNotRequired
Used to annotate a Future-returning function (including constructors, getters, methods, and operators), or a Future-typed field (including top-level, instance, and static) f. Indicates that the Future value that f returns does not need to be awaited. Any methods that override f in class inheritance, are also expected to conform to this contract.
checked → const _Checked
Used to annotate a parameter of an instance method that overrides another method.
doNotStore → const _DoNotStore
Used to annotate a method, getter, top-level function, or top-level getter to indicate that the value obtained by invoking it should not be stored in a field or top-level variable. The annotation can also be applied to a class to implicitly annotate all of the valid members of the class, or applied to a library to annotate all of the valid members of the library, including classes. If a value returned by an element marked as doNotStore is returned from a function or getter, that function or getter should be similarly annotated.
doNotSubmit → const _DoNotSubmit
Used to annotate an optional parameter, method, getter or top-level getter or function that is not intended to be accessed in checked-in code, but might be ephemerally used during development or local testing.
experimental → const _Experimental
Used to annotate a library, or any declaration that is part of the public interface of a library (such as top-level members, class members, and function parameters) to indicate that the annotated API is experimental and may be removed or changed at any-time without updating the version of the containing package, despite the fact that it would otherwise be a breaking change.
factory → const _Factory
Used to annotate an instance or static method m. Indicates that m must either be abstract or must return a newly allocated object or null. In addition, every method that either implements or overrides m is implicitly annotated with this same annotation.
immutable → const Immutable
Used to annotate a class C. Indicates that C and all subtypes of C must be immutable.
internal → const _Internal
Used to annotate a declaration which should only be used from within the package in which it is declared, and which should not be exposed from said package's public API.
isTest → const _IsTest
Used to annotate a test framework function that runs a single test.
isTestGroup → const _IsTestGroup
Used to annotate a test framework function that runs a group of tests.
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 true if dart.library.ui is defined and false otherwise.
literal → const _Literal
Used to annotate a const constructor c. Indicates that any invocation of the constructor must use the keyword const unless one or more of the arguments to the constructor is not a compile-time constant.
mustBeConst → const _MustBeConst
Used to annotate a parameter which should be constant.
mustBeOverridden → const _MustBeOverridden
Used to annotate an instance member m declared on a class or mixin C. Indicates that every concrete subclass of C must directly override m.
mustCallSuper → const _MustCallSuper
Used to annotate an instance member (method, getter, setter, operator, or field) m. Indicates that every invocation of a member that overrides m must also invoke m. In addition, every method that overrides m is implicitly annotated with this same annotation.
NONE_UNIT → const None<Unit>
nonVirtual → const _NonVirtual
Used to annotate an instance member (method, getter, setter, operator, or field) m in a class C or mixin M. Indicates that m should not be overridden in any classes that extend or mixin C or M.
OK_UNIT → const Ok<Unit>
optionalTypeArgs → const _OptionalTypeArgs
Used to annotate a class, mixin, extension, function, method, or typedef declaration C. Indicates that any type arguments declared on C are to be treated as optional.
protected → const _Protected
Used to annotate an instance member in a class or mixin which is meant to be visible only within the declaring library, and to other instance members of the class or mixin, and their subtypes.
redeclare → const _Redeclare
Used to annotate an instance member of an extension type that redeclares a member from a superinterface.
reopen → const _Reopen
Annotation for intentionally loosening restrictions on subtyping that would otherwise cause lint warnings to be produced by the implicit_reopen lint.
required → const Required
Used to annotate a named parameter p in a method or function f. Indicates that every invocation of f must include an argument corresponding to p, despite the fact that p would otherwise be an optional parameter.
sealed → const _Sealed
Annotation marking a class as not allowed as a super-type outside of the current package.
SOME_UNIT → const Some<Unit>
UNIT → const Unit
useResult → const UseResult
Used to annotate a method, field, or getter within a class, mixin, or extension, or a or top-level getter, variable or function to indicate that the value obtained by invoking it should be used. A value is considered used if it is assigned to a variable, passed to a function, or used as the target of an invocation, or invoked (if the result is itself a function).
virtual → const _Virtual
Used to annotate a field that is allowed to be overridden in Strong Mode.
visibleForOverriding → const _VisibleForOverriding
Used to annotate an instance member that was made public so that it could be overridden but that is not intended to be referenced from outside the defining library.
visibleForTesting → const _VisibleForTesting
Used to annotate a declaration that was made public, so that it is more visible than otherwise necessary, to make code testable.

Properties

consecList FutureOr<R> Function<R>(Iterable<FutureOr> items, _TSyncOrAsyncMapper<Iterable, R> callback, {bool eagerError = true, _TOnCompleteCallback? onComplete, _TOnErrorCallback? onError})
final

Functions

asyncNone<T extends Object>() Async<None<T>>
asyncSome<T extends Object>(FutureOr<T> value) Async<Some<T>>
asyncUnit() Async<Unit>
binarySearch<E>(List<E> sortedList, E value, {int compare(E, E)?}) int
Returns a position of the value in sortedList, if it is there.
combineAsync<T extends Object>(Iterable<Async<T>> asyncs, {Err<List<T>> onErr(List<Result<T>> allResults)?}) Async<List<T>>
Combines an iterable of Asyncs into one containing a list of their values.
combineOption<T extends Object>(Iterable<Option<T>> options) Option<List<T>>
Combines an iterable of Options into one containing a list of their values.
combineOutcome<T extends Object>(Iterable<Outcome<T>> outcomes, {Err<List<Option<T>>> onErr(List<Result<Option<T>>> allResults)?}) Resolvable<List<Option<T>>>
Combines an iterable of Outcomes into one containing a list of their values.
combineResolvable<T extends Object>(Iterable<Resolvable<T>> resolvables, {Err<List<T>> onErr(List<Result<T>> allResults)?}) Resolvable<List<T>>
Combines an iterable of Resolvables into one containing a list of their values.
combineResult<T extends Object>(Iterable<Result<T>> results, {Err<List<T>> onErr(List<Result<T>> allResults)?}) Result<List<T>>
Combines an iterable of Results into one containing a list of their values.
combineSync<T extends Object>(Iterable<Sync<T>> syncs, {Err<List<T>> onErr(List<Result<T>> allResults)?}) Sync<List<T>>
Combines an iterable of Syncs into one containing a list of their values.
compareAsciiLowerCase(String a, String b) int
Compares a and b lexically, converting ASCII letters to lower case.
compareAsciiLowerCaseNatural(String a, String b) int
Compares strings a and b according to lower-case natural sort ordering.
compareAsciiUpperCase(String a, String b) int
Compares a and b lexically, converting ASCII letters to upper case.
compareAsciiUpperCaseNatural(String a, String b) int
Compares strings a and b according to upper-case natural sort ordering.
compareNatural(String a, String b) int
Compares strings a and b according to natural sort ordering.
consec<A, R>(FutureOr<A> a, FutureOr<R> callback(A a), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps a synchronous or asynchronous value to a single value.
consec2<A, B, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<R> callback(A a, B b), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps two synchronous or asynchronous values to a single value.
consec3<A, B, C, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<R> callback(A a, B b, C c), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps three synchronous or asynchronous values to a single value.
consec4<A, B, C, D, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<R> callback(A a, B b, C c, D d), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps four synchronous or asynchronous values to a single value.
consec5<A, B, C, D, E, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<E> e, FutureOr<R> callback(A a, B b, C c, D d, E e), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps five synchronous or asynchronous values to a single value.
consec6<A, B, C, D, E, F, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<E> e, FutureOr<F> f, FutureOr<R> callback(A a, B b, C c, D d, E e, F f), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps six synchronous or asynchronous values to a single value.
consec7<A, B, C, D, E, F, G, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<E> e, FutureOr<F> f, FutureOr<G> g, FutureOr<R> callback(A a, B b, C c, D d, E e, F f, G g), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps seven synchronous or asynchronous values to a single value.
consec8<A, B, C, D, E, F, G, H, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<E> e, FutureOr<F> f, FutureOr<G> g, FutureOr<H> h, FutureOr<R> callback(A a, B b, C c, D d, E e, F f, G g, H h), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps eight synchronous or asynchronous values to a single value.
consec9<A, B, C, D, E, F, G, H, I, R>(FutureOr<A> a, FutureOr<B> b, FutureOr<C> c, FutureOr<D> d, FutureOr<E> e, FutureOr<F> f, FutureOr<G> g, FutureOr<H> h, FutureOr<I> i, FutureOr<R> callback(A a, B b, C c, D d, E e, F f, G g, H h, I i), {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Maps nine synchronous or asynchronous values to a single value.
equalsIgnoreAsciiCase(String a, String b) bool
Checks if strings a and b differ only on the case of ASCII letters.
groupBy<S, T>(Iterable<S> values, T key(S)) Map<T, List<S>>
Groups the elements in values by the value returned by key.
hashIgnoreAsciiCase(String string) int
Hash code for a string which is compatible with equalsIgnoreAsciiCase.
insertionSort<E>(List<E> elements, {int compare(E, E)?, int start = 0, int? end}) → void
Sort a list between start (inclusive) and end (exclusive) using insertion sort.
isNullable<T>() bool
Returns true if T is nullable.
isSubtype<TChild, TParent>() bool
Returns true if A is a subtype of B.
jsonDecodeOrNone<T extends Object>(dynamic input) Option<T>
Parses a JSON input into an object of type T, returning None on failure.
jsonDecodeOrNull<T>(String input) → T?
Parses a JSON input into an object of type T, returning Null on failure.
lastBy<S, T>(Iterable<S> values, T key(S)) Map<T, S>
Associates the elements in values by the value returned by key.
letAsOrNone<T extends Object>(dynamic input) Option<T>
Casts input to type T, returning None on failure.
letAsOrNull<T>(dynamic input) → T?
Casts input to type T, returning Null on failure.
letAsStringOrNone(dynamic input) Option<String>
Converts input to String, returning None on failure.
letAsStringOrNull(dynamic input) String?
Converts input to String, returning Null on failure.
letBoolOrNone(dynamic input) Option<bool>
Converts input to bool, returning None on failure.
letBoolOrNull(dynamic input) bool?
Converts input to bool, returning Null on failure.
letDateTimeOrNone(dynamic input) Option<DateTime>
Converts input to bool, returning None on failure.
letDateTimeOrNull(dynamic input) DateTime?
Converts input to bool, returning Null on failure.
letDoubleOrNone(dynamic input) Option<double>
Converts input to double, returning None on failure.
letDoubleOrNull(dynamic input) double?
Converts input to double, returning Null on failure.
letIntOrNone(dynamic input) Option<int>
Converts input to int, returning None on failure.
letIntOrNull(dynamic input) int?
Converts input to int, returning Null on failure.
letIterableOrNone<T extends Object>(dynamic input) Option<Iterable<Option<T>>>
Converts input to Iterable<Option<T>>, returning None on failure.
letIterableOrNull<T>(dynamic input) Iterable<T?>?
Converts input to Iterable<Option<T>>, returning Null on failure.
letListOrNone<T extends Object>(dynamic input) Option<List<Option<T>>>
Supported types:
letListOrNull<T>(dynamic input) List<T?>?
Supported types:
letMapOrNone<K extends Object, V extends Object>(dynamic input) Option<Map<K, Option<V>>>
Converts input to Map<K, Option<V>>, returning None on failure.
letMapOrNull<K, V>(dynamic input) Map<K, V>?
Converts input to Map<K, Option<V>>, returning Null on failure.
letNumOrNone(dynamic input) Option<num>
Converts input to num, returning None on failure.
letNumOrNull(dynamic input) num?
Converts input to num, returning Null on failure.
letOrNone<T extends Object>(dynamic input) Option<T>
Attempts to convert a dynamic input to the specified type T, returning None on failure.
letOrNull<T>(dynamic input) → T?
Attempts to convert a dynamic input to the specified type T, returning Null on failure.
letSetOrNone<T extends Object>(dynamic input) Option<Set<Option<T>>>
Supported types:
letSetOrNull<T>(dynamic input) Set<T?>?
Supported types:
letUriOrNone(dynamic input) Option<Uri>
Converts input to Uri, returning None on failure.
letUriOrNull(dynamic input) Uri?
Converts input to Uri, returning Null on failure.
lowerBound<E>(List<E> sortedList, E value, {int compare(E, E)?}) int
Returns the first position in sortedList that does not compare less than value.
mapMap<K1, V1, K2, V2>(Map<K1, V1> map, {K2 key(K1, V1)?, V2 value(K1, V1)?}) Map<K2, V2>
Creates a new map from map with new keys and values.
maxBy<S, T>(Iterable<S> values, T orderBy(S), {int compare(T, T)?}) → S?
Returns the element of values for which orderBy returns the maximum value.
mergeMaps<K, V>(Map<K, V> map1, Map<K, V> map2, {V value(V, V)?}) Map<K, V>
Returns a new map with all key/value pairs in both map1 and map2.
mergeSort<E>(List<E> elements, {int start = 0, int? end, int compare(E, E)?}) → void
Sorts a list between start (inclusive) and end (exclusive) using the merge sort algorithm.
minBy<S, T>(Iterable<S> values, T orderBy(S), {int compare(T, T)?}) → S?
Returns the element of values for which orderBy returns the minimum value.
resolvableNone<T extends Object>() Resolvable<None<T>>
resolvableSome<T extends Object>(T value) Resolvable<Some<T>>
resolvableUnit() Resolvable<Unit>
reverse<E>(List<E> elements, [int start = 0, int? end]) → void
Reverses a list, or a part of a list, in-place.
runZoned<R>(R body(), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification, Function? onError}) → R
Runs body in its own zone.
runZonedGuarded<R>(R body(), void onError(Object error, StackTrace stack), {Map<Object?, Object?>? zoneValues, ZoneSpecification? zoneSpecification}) → R?
Runs body in its own error zone.
scheduleMicrotask(void callback()) → void
Runs a function asynchronously.
shuffle(List elements, [int start = 0, int? end, Random? random]) → void
Shuffles a list randomly.
stronglyConnectedComponents<T>(Map<T, Iterable<T>> graph) List<Set<T>>
Returns the strongly connected components of graph, in topological order.
syncNone<T extends Object>() Sync<None<T>>
syncSome<T extends Object>(T value) Sync<Some<T>>
syncUnit() Sync<Unit>
transitiveClosure<T>(Map<T, Iterable<T>> graph) Map<T, Set<T>>
Returns the transitive closure of graph.
typeEquality<T1, T2>() bool
Returns true if T1 and T2 are the same type.
unawaited(Future<void>? future) → void
Explicitly ignores a future.
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 linter rules and to signal to developers that the contained code can throw exceptions from Outcome operations.
wait<R>(Iterable<FutureOr> items, _TSyncOrAsyncMapper<Iterable, R> callback, {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Waits for a list of FutureOr values and transforms the results.
waitAlike<T>(Iterable<FutureOr<T>> items, {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<Iterable<T>>
Waits for a list of FutureOr values and returns them as an Iterable.
waitAlikeF<T>(Iterable<_TFactory> itemFactories, {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<Iterable<T>>
Executes deferred operations and returns the results as an Iterable.
waitF<R>(Iterable<_TFactory> itemFactories, _TSyncOrAsyncMapper<Iterable, R> callback, {_TOnErrorCallback? onError, bool eagerError = true, _TOnCompleteCallback? onComplete}) FutureOr<R>
Waits for a list of FutureOr values and transforms the results.

Typedefs

ControllerCallback = void Function()
Type of a stream controller's onListen, onPause and onResume callbacks.
ControllerCancelCallback = FutureOr<void> Function()
Type of stream controller onCancel callbacks.
CreatePeriodicTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration period, void f(Timer timer))
The type of a custom Zone.createPeriodicTimer implementation function.
CreateTimerHandler = Timer Function(Zone self, ZoneDelegate parent, Zone zone, Duration duration, void f())
The type of a custom Zone.createTimer implementation function.
ErrorCallbackHandler = AsyncError? Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace? stackTrace)
The type of a custom Zone.errorCallback implementation function.
ForkHandler = Zone Function(Zone self, ZoneDelegate parent, Zone zone, ZoneSpecification? specification, Map<Object?, Object?>? zoneValues)
The type of a custom Zone.fork implementation function.
Glog = Log
HandleUncaughtErrorHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, Object error, StackTrace stackTrace)
The type of a custom Zone.handleUncaughtError implementation function.
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<V>> errParts, Map<K, V> okParts})
The result of partitioning a Map<K, Result<V>>.
OptionPartition<T extends Object> = ({Iterable<None<T>> noneParts, Iterable<Some<T>> someParts})
The result of partitioning an Iterable<Option<T>>.
PrintHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, String line)
The type of a custom Zone.print implementation function.
RegisterBinaryCallbackHandler = ZoneBinaryCallback<R, T1, T2> Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2))
The type of a custom Zone.registerBinaryCallback implementation function.
RegisterCallbackHandler = ZoneCallback<R> Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.registerCallback implementation function.
RegisterUnaryCallbackHandler = ZoneUnaryCallback<R, T> Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg))
The type of a custom Zone.registerUnaryCallback implementation function.
ResolvablePartition<T extends Object> = ({Iterable<Async<T>> asyncParts, Iterable<Sync<T>> syncParts})
The result of partitioning an Iterable<Resolvable<T>>.
ResultPartition<T extends Object> = ({Iterable<Err<T>> errParts, Iterable<Ok<T>> okParts})
The result of partitioning an Iterable<Result<T>>.
RunBinaryHandler = R Function<R, T1, T2>(Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2), T1 arg1, T2 arg2)
The type of a custom Zone.runBinary implementation function.
RunHandler = R Function<R>(Zone self, ZoneDelegate parent, Zone zone, R f())
The type of a custom Zone.run implementation function.
RunUnaryHandler = R Function<R, T>(Zone self, ZoneDelegate parent, Zone zone, R f(T arg), T arg)
The type of a custom Zone.runUnary implementation function.
ScheduleMicrotaskHandler = void Function(Zone self, ZoneDelegate parent, Zone zone, void f())
The type of a custom Zone.scheduleMicrotask implementation function.
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.
TDependencyGroup<T extends Object> = Map<Entity, Dependency<T>>
A typedef for a Map representing a group of dependencies organized by a group entity.
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.
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.
TOnChangeRegistry = void Function()
A typedef for a callback function to invoke when the state of a DIRegistry changes.
TOnErrorCallback<T extends Object> = Err<T> Function(Object? error, StackTrace stackTrace)
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.
TRegistryState = Map<Entity, TDependencyGroup<Object>>
A typedef for a Map representing the state of a DIRegistry.
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.
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.
TServiceResolvables<TParams> = List<Resolvable<Unit> Function(TParams data)>
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 previous task.
TVoidCallback = void Function()
ZoneBinaryCallback<R, T1, T2> = R Function(T1, T2)
ZoneCallback<R> = R Function()
ZoneUnaryCallback<R, T> = R Function(T)

Exceptions / Errors

AsyncError
An error and a stack trace.
DeferredLoadException
Thrown when a deferred library fails to load.
Err<T extends Object>
A Outcome that represents the failure case of a Result, containing an error value.
ParallelWaitError<V, E>
Error thrown when waiting for multiple futures, when some have errors.
TimeoutException
Thrown when a scheduled timeout happens while waiting for an async result.