ThemedIconSrc class

A ThemedValue that resolves to String.

final iconSrc = ThemedIconSrc(
  'assets/icon_light.png',
  'assets/icon_dark.png',
);

iconSrc.getValue(Brightness.dark); // 'assets/icon_light.png'
iconSrc.getValue(Brightness.light); // 'assets/icon_dark.png'

Constructors

ThemedIconSrc(String dark, String light)
const

Properties

dark String
The value that should be used to when the dark theme is used.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
light String
The value that should be used to when the light theme is used.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getValue(Brightness brightness) String
inherited
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