A widget that does not require mutable state.
A stateless widget is a widget that describes part of the user interface by building a constellation of other widgets that describe the user interface more concretely. The building process continues recursively until the description of the user interface is fully concrete (e.g., consists entirely of RenderObjectWidgets, which describe concrete RenderObjects).
Stateless widget are useful when the part of the user interface you are describing does not depend on anything other than the configuration information in the object itself and the BuildContext in which the widget is inflated. For compositions that can change dynamically, e.g. due to having an internal clock-driven state, or depending on some system state, consider using StatefulWidget.
BuildContext context) → Widget
Describes the part of the user interface represented by this widget.protected
) → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
List<String> description) → void
Add additional information to the given description for use by toString.mustCallSuper, protected, inherited
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.inherited
) → String
Returns a string representation of this object.inherited
) → String
A short, textual description of this widget.inherited