arch/base/base library

Classes

BaseInstancePart<Input, T extends KoreInstance>
Base class for parts Parts are smallest kore instances They do not have state or dependencies But they can receive events and contain other parts inside Part also contain reference to parent instance and root parent instance of parts tree You can specify input type for part Parts must be annotated with instancePart annotation You also can execute requests and cancel them automatically when part will be disposed with ApiCaller.executeAndCancelOnDispose method
BaseInteractor<State, Input>
Main class to extend to create interactor
BaseKoreInstance<Input>
Base class for kore instances
BaseWrapper<Input>
Base class that wraps logic for working with third party dependency
EventBus
Basic Event bus implementation
KoreApp<NavigationInteractorType extends BaseNavigationInteractor<dynamic, dynamic, dynamic, RoutesBase, RoutesBase, RoutesBase, dynamic, dynamic, dynamic, BaseDeepLinksInteractor>>
Main class for flutter_kore application
KoreInstanceConfiguration
Model class describing configuration for basic kore instance
Observable<T>
Base class for observable object
ObservableChange<T>
Simple model class describing object change - next and previous values
RestrictedInstancePart<Input, T extends KoreInstance>
BaseInstancePart that applies to given KoreInstance subtype
StateFulInstanceSettings
Settings for stateful instance. Contain state restore flags and state id
StateStream<T>
Wrapper class for state updates for StateFulInstanceSettings
Store<State>
Store is providing access to State for current containing class
StoreChange<Value>
Class to hold store change
SyncFuture
Helper class to call any Future with addition of timeout handling
UniversalInstancePart<Input>
BaseInstancePart that applies to every KoreInstance subtype

Mixins

ApiCaller<Input>
Mixin containing logic to collect requests in collection and cancel them in a batch when BaseKoreInstance.dispose called
EventBusReceiver
Mixin that subscribe to event bus events
KoreInstance<T>
Base mixin for kore instance
StatefulKoreInstance<State, Input>
Base class for storing data
SynchronizedKoreInstance<Input>
Base class for executing operations in queue, enabling to sync operations if needed

Typedefs

EventBusSubscriber<T> = void Function(T event)
LocaleCacheGetDelegate = String? Function(String name)
LocaleCachePutDelegate = Future<bool> Function(String name, String data)
StateUpdater<State> = void Function(State state)
StoreMapper<Value, State> = Value Function(State state)