AppTheme class Null safety

Main App theme object.

Usage:

 AppTheme<ColorClass>(
    data: ThemeData(),
    options: ColorClass(),
  ),
Annotations

Constructors

AppTheme({required String id, required ThemeData data, required String description, AppThemeOptions? options})
Constructs a AppTheme. data is required. [...]
AppTheme.dark({String? id})
Default dark theme
factory
AppTheme.light({String? id})
Default light theme
factory
AppTheme.purple({String? id})
Additional purple theme constructor
factory

Properties

data ThemeData
ThemeData associated with the AppTheme
final
description String
Short description which describes the theme. Must be less than 30 characters.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
Unique ID which defines the theme. Don't use conflicting strings. [...]
final
options AppThemeOptions?
Passed options object. Use this object to pass additional data that should be associated with the theme. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({required String id, String? description, ThemeData? data, AppThemeOptions? options}) AppTheme
Creates a copy of this AppTheme but with the given fields replaced with the new values. Id will be replaced by the given id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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