core library Null safety

Classes

AsyncDisposable<T extends Object?>
An interface to force implement async dispose function. [...]
AsyncInitializable<T extends Object?>
An interface to force implement async initialize function. [...]
AsyncLoadable<T extends Object?>
AsyncNestedInitializable<OUTPUT extends Object?, INNER_OUTPUT extends Object?>
AsyncRunnable<T extends Object?>
AsyncStartable<T extends Object?>
AsyncStoppable<T extends Object?>
Categorizable<T extends Object?>
Cloneable<T extends Object?>
An interface to force implement clone functionality.
Copyable<T extends Object?>
An interface to force implement copyWith functionality.
Disposable<T extends Object?>
An interface to force implement dispose function. [...]
Entity<MODEL extends Model>
Executable<OUTPUT extends Object?>
An interface to force implement execute function. [...]
Identifiable<T extends Object?>
Most commonly used interface in classes with keys to identify objects. key is supposed to be unique. Can be used in == operator and hashCode overrides.
Initializable<T extends Object?>
An interface to force implement initialize function. [...]
Loadable<T extends Object?>
Model
Contains domain data.
NestedInitializable<OUTPUT extends Object?, INNER_OUTPUT extends Object?>
Parameterized<INPUT extends Object?>
Runnable<T extends Object?>
Serializable
An interface to force implement serialization.
Service
Startable<T extends Object?>
Stoppable<T extends Object?>
SubscriptionManager
Undoable<T extends Object?>
Validatable<T extends Object?>
ViewModel
Contains data that could be bound to the views in user interface.

Mixins

CallToExecute<OUTPUT extends Object?>
A mixin on Executable. [...]

Properties

emptyCallback VoidCallback
An empty function that can be used in assigning default values for Callback. [...]
read-only
emptyParameterizedCallback ParameterizedVoidCallback<Object?>
An empty parameterized function that can be used in assigning default values for ParameterizedCallback. [...]
read-only

Enums

ExceptionSeverity
ExceptionSeverity is an enum with the following values. [...]

Typedefs

Builder<INSTANCE extends Object?> = INSTANCE Function()
Example: [...]
Callback<OUTPUT extends Object?> = OUTPUT Function()
Example: [...]
Deserialize<T extends Object?> = T Function(Json json)
Alias for function that converts a map in to an object.
ExceptionBuilder<EXCEPTION extends NamedException> = EXCEPTION Function()
Initialize<T extends Object?> = T Function()
Json = Map<String, Object?>
ParameterizedBuilder<INPUT extends Object?, INSTANCE extends Object?> = INSTANCE Function(INPUT input)
Example: [...]
ParameterizedCallback<INPUT extends Object?, OUTPUT extends Object?> = OUTPUT Function(INPUT input)
Example: [...]
ParameterizedExceptionBuilder<INPUT extends Object?, EXCEPTION extends NamedException> = EXCEPTION Function(INPUT input)
ParameterizedVoidCallback<INPUT extends Object?> = void Function(INPUT input)
Example: [...]
Serialize<T extends Object?> = Json Function(T item)
Alias for function that converts a object in to an map.
VoidCallback = void Function()
Example: [...]

Exceptions / Errors

BasicException
Exception that can be created on the fly.
EmptyException
A simple empty exception that can be created on the fly.
NamedException
Wrapper around the built-in Exception class. [...]
UnknownException
Exceptions that are not expected but handled in the else part and sent to the user interface. [...]