dawn library

This is Dawn's main library that provides all of its public APIs.

Classes

Animation
This class can be used to add animations to PaintedWidget's instances.
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.
ChildlessPaintedNode<T extends PaintedWidget, U extends Element>
A PaintedNode with no children.
ConsumerBuilder<T extends Store>
A widget that is rebuilt with the latest state of a Store provided by a Provider.
Container
A Widget that paints an html.DivElement.
ContainerNode
A Node corresponding to Container.
Debouncer
Debounces multiple tasks by running only the last one using JavaScript's requestAnimationFrame API.
Easing
An implementation of the cubic-bezier curves.
FutureBuilder<T>
A Widget that is rebuilt with the latest snapshot of a Future.
Image
A Widget that paints an html.ImageElement.
ImageNode
A Node corresponding to Image.
InheritedNode<T extends InheritedWidget>
A Node corresponding to InheritedWidget.
InheritedWidget
The base class for widgets that efficiently propagate information down the tree.
Keyframe
Similar to CSS and JS animations' keyframes.
MultiChildNode<T extends Widget>
A ReassemblableNode with multiple children in the Node tree.
MultiChildPaintedNode<T extends PaintedWidget, U extends Element>
A PaintedNode with multiple children.
A navigation outlet.
Node<T extends Widget>
An instantiation of a Widget at a particular location in the Node tree.
PaintedWidget
The base class for widgets that paint an html.Element.
Provider
A widget that propagates multiple Store instances down the tree.
SingleChildNode<T extends Widget>
A ReassemblableNode with only one child in the Node tree.
SingleChildPaintedNode<T extends PaintedWidget, U extends Element>
A PaintedNode with one child.
State<T extends StatefulWidget>
The logic and internal state for a StatefulWidget.
StatefulBuilder
A widget that has a State and calls a closure to obtain its child widget.
StatefulNode<T extends StatefulWidget>
A Node corresponding to StatefulWidget.
StatefulWidget
A Widget that has a mutable state.
StatelessBuilder
A stateless utility Widget whose build method uses its builder callback to create the widget's child.
StatelessNode<T extends StatelessWidget>
A Node corresponding to StatelessWidget.
StatelessWidget
A Widget that does not have a mutable state.
Store
A store that can notify its listeners when setState is called.
StreamBuilder<T>
A Widget that is rebuilt with the latest snapshot of a Stream.
Style
Describes how a PaintedWidget should look on the screens.
Text
A Widget that paints an html.SpanElement.
TextNode
A Node corresponding to Text.
Widget
The base class for all of Dawn's widgets.

Enums

AnimationDirection
Similar to CSS and JS animations' animation-direction.
AnimationFillMode
Similar to CSS and JS animations' animation-fill-mode.
ConnectionState
The connection state of an AsyncSnapshot.

Mixins

Buildable
Adds the build function to classes such as StatelessWidget and State.
PaintedNode<T extends PaintedWidget, U extends Element>
A Node corresponding to PaintedWidget.
ReassemblableNode<T extends Widget>
A Node with a child or multiple children in the Node tree.

Extensions

CaseTransformableString on String
Adds some utilities to transform strings.
DependOnStore on BuildContext
Provides the utility needed to depend on a Store.
The navigation functions that are added to BuildContext.

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.
ConsumerWidgetBuilder<T extends Store> = Widget Function(BuildContext context, T store)
The type of the builder function used in a ConsumerBuilder.
EventSubscriptionCallback<T extends Event> = void Function(T event)
StatefulWidgetBuilder = Widget Function(BuildContext context, StateSetter setState)
The type of the builder function used in a StatefulBuilder.
StatelessWidgetBuilder = Widget Function(BuildContext context)
The type of the builder function used in a StatelessBuilder.
StateSetter = void Function(void callback())
The type of the function that updates a State.