AvailableTheme class

Represents any theme be it builtin or intricate, but does not represent the actual theme data. Thus it is mostly used to represent the theme in a theme picker, where looking through the raw theme data can be bad.

Constructors

AvailableTheme(String properName, String id, IconData? icon, String author, [bool isDarkMode = true])

Properties

author String
The author of the theme
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
The icon of the theme (This is highly volatile). Look for flutter_icon and community_icon
final
id String
The id of the theme. Usually "author.name" all in lower case
getter/setter pair
isDarkMode bool
Whether the theme is dark or not
final
properName String
The name displayed to the user
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

export List<AvailableTheme>
The list of all available themes. This is a static list and should not be modified
final

Static Methods

of(String name) AvailableTheme
Returns the theme with the given name. If the theme is not found, it will return the first theme in the list