idht library

Classes

DI
A dependency injection container that manages singletons, factories, and events.
Event<T>
A generic event class that allows subscribing to and emitting events of type T.
EventBuilder
A widget that rebuilds its content when any of the provided events change.
Localization<Lang extends Enum>
A localization system that manages translations for multiple languages.
Store
A generic in-memory store for managing model instances by type and ID.

Extensions

LocalizationExtension on String
Extension that provides translation capabilities to Strings.

Properties

di DI
A shorthand getter for the default DI.instance.
no setter
store Store
A shorthand getter for the default Store.instance.
no setter

Typedefs

DiFactory<T> = T Function()
A factory type definition for creating new instances of type T.
EventCallback<T> = dynamic Function(T data)
A callback function for handling events of type T.
FromJsonCallback<T> = T Function(Map<String, dynamic> json)

Exceptions / Errors

DiException