core library

This library provides Dawn's core functionalities.

Classes

AsyncSnapshot<T>
An immutable representation of the most recent interaction with an asynchronous computation.
BuildContext
The location of a specific Widget in the Node tree.
Debouncer
Debounces multiple tasks by running only the last one using scheduleMicrotask.
EventDetails<T extends Event>
The details of the fired event.
PointerEventDetails
The details of the fired pointer event.
Store
A store that can notify its listeners when setState is called.
Style
Describes how a PaintedWidget should look on the screens.

Enums

ConnectionState
The connection state of an AsyncSnapshot.
PointerType
Types of pointers.

Mixins

Buildable
Adds the build function to classes such as StatelessWidget and State.

Extensions

StringHelpers on String
Adds some utilities to transform strings.

Functions

runApp(Widget app) → void
Attaches the given app to the document's body by initializing it.

Typedefs

AsyncWidgetBuilder<T> = Widget Function(BuildContext context, AsyncSnapshot<T> snapshot)
The type of the builder function used in async builders such as StreamBuilder and FutureBuilder.
EventCallback<T extends EventDetails<Event>> = void Function(T details)
The callback function of events.
PointerEventCallback<T extends PointerEventDetails> = EventCallback<T>
The callback function of pointer events.