SdkAppearance class

SDK appearance and feature settings configured in the CupThread Developer Console.

Bundles theme selection, feature toggles, and changelog overlay customization.

Example

final appearance = SdkAppearance(
  theme: SdkTheme.dark,
  features: const SdkFeatures(feedback: true, roadmap: true),
);

Constructors

SdkAppearance({SdkTheme theme = SdkTheme.system, SdkFeatures features = const SdkFeatures(), ChangelogOverlayConfig changelogOverlay = const ChangelogOverlayConfig()})
Creates an SdkAppearance configuration object.
const
SdkAppearance.fromJson(Map<String, dynamic>? json)
Deserializes SdkAppearance from a nullable JSON map.
factory

Properties

changelogOverlay → ChangelogOverlayConfig
Configuration for the What's New modal sheet.
final
features → SdkFeatures
Feature flags controlling enabled screens.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → SdkTheme
Active theme for SDK UI rendering.
final

Methods

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

Operators

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