WidgetConfig class

Domain model representing a widget's configuration.

Contains all configuration values needed to create and render a widget:

  • Widget size and layout
  • Style type
  • Refresh interval

Constructors

WidgetConfig({required WidgetSize size, required WidgetLayout layout, required String style, required int refreshInterval})
Creates a new WidgetConfig instance.
const
WidgetConfig.fromJson(Map<String, dynamic> json)
Creates a WidgetConfig from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
layout WidgetLayout
The layout style for the widget.
final
refreshInterval int
Refresh interval in seconds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size WidgetSize
The size of the widget.
final
style String
The style type name (e.g., 'liquidGlass').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this WidgetConfig to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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