UIResources class

Container class for all UI resources used by the Digia UI system.

UIResources holds mappings for icons, images, text styles, colors, and font factories that can be used throughout the application. This allows for centralized resource management and easy customization.

Constructors

UIResources({required Map<String, IconData>? icons, required Map<String, ImageProvider<Object>>? images, required Map<String, TextStyle?>? textStyles, required Map<String, Color?>? colors, required Map<String, Color?>? darkColors, DUIFontFactory? fontFactory})
Creates a new UIResources instance with the provided resource mappings.

Properties

colors Map<String, Color?>?
Mapping of color token names to Color objects for light theme
final
darkColors Map<String, Color?>?
Mapping of color token names to Color objects for dark theme
final
fontFactory DUIFontFactory?
Factory for creating custom fonts and text styles
final
hashCode int
The hash code for this object.
no setterinherited
icons Map<String, IconData>?
Mapping of icon names to IconData objects for use in UI components
final
images Map<String, ImageProvider<Object>>?
Mapping of image names to ImageProvider objects for use in UI components
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyles Map<String, TextStyle?>?
Mapping of text style names to TextStyle objects for consistent typography
final

Methods

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