w_common library

Deprecated: 1.6.0 To be removed: 2.0.0

This entry point is deprecated in favor of consumers importing the specific pieces of w_common they want to use. For example, to leverage the disposable classes:

import 'package:w_common/disposable.dart';

Classes

Cache<TIdentifier, TValue>
An abstraction over Map that helps avoid paying construction costs for expensive objects. [...]
CacheContext<TIdentifier, TValue>
Immutable payload that indicates a change in a Cache.
CachingStrategy<TIdentifier, TValue>
Caching strategy to be used by Cache. [...]
Disposable
Allows the creation of managed objects, including helpers for common patterns. [...]
DisposableManager
Managers for disposable members. [...]
DisposableManagerV2
Managers for disposable members. [...]
DisposableManagerV3
Managers for disposable members. [...]
DisposableManagerV4
Managers for disposable members. [...]
DisposableManagerV5
Managers for disposable members. [...]
DisposableManagerV6
Managers for disposable members. [...]
DisposableManagerV7
Managers for disposable members. [...]
InvalidationMixin
A mixin providing a simple validation lifecycle. [...]
JsonSerializable
Abstract class that identifies other classes being serializable as json. [...]
LeastRecentlyUsedStrategy<TIdentifier, TValue>
A CachingStrategy that will hold the last n most recently used TValues. [...]
ManagedDisposer
Used to invoke, and remove references to, a Disposer before disposal of the parent object.
ReferenceCountingStrategy<TIdentifier, TValue>
Maintains the number of references to an instance of a cache value.

Enums

ValidationStatus
An object representing the reason for the validation . [...]

Typedefs

Disposer() → Future
A function that, when called, disposes of one or more objects.
Func<T>() → T
Generic callback function type that expects a certain return type. [...]

Exceptions / Errors

ObjectDisposedException
Exception thrown when an operation cannot be completed because the disposable object upon which it depended has been disposed. [...]