Theme class abstract

A class that defines the theme data for Wave UI components.

The theme data includes configuration for various visual properties like colors, typography, and other design elements used throughout the Wave UI framework.

Example:

final theme = WaveTheme(
  colorScheme: ColorScheme(...),
);

This class is immutable. To modify a Theme instance, use Theme.copyWith.

Mixed-in types
Annotations
  • @freezed

Constructors

Theme.new({WaveAppBarTheme? appBarTheme, ColorScheme? colorScheme, TextTheme? textTheme, ButtonTheme? buttonTheme})
Creates a Theme.
factory

Properties

appBarTheme WaveAppBarTheme
no setterinherited
buttonTheme ButtonTheme
no setterinherited
colorScheme ColorScheme
no setterinherited
copyWith → $ThemeCopyWith<Theme>
Create a copy of Theme with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTheme TextTheme
no setterinherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

of(BuildContext context) Theme
Retrieves the Theme from the nearest WaveApp ancestor.