WidgetBuilder class

Factory class for creating widget instances.

Uses the configuration to build widgets with appropriate styles and layouts based on widget size.

Constructors

WidgetBuilder({required SuperHomeWidgetConfig config, required StyleManager styleManager})
Creates a new WidgetBuilder instance.

Properties

config SuperHomeWidgetConfig
The main configuration.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styleManager StyleManager
The style manager for creating styles.
final

Methods

buildLargeWidget() BaseWidgetRender
Builds a large widget instance.
buildMediumWidget() BaseWidgetRender
Builds a medium widget instance.
buildSmallWidget() BaseWidgetRender
Builds a small widget instance.
buildWidget(WidgetSize size) BaseWidgetRender
Builds a widget instance for the given size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited