AppTheme class Null safety

Constructors

AppTheme({required Brightness brightness, required Color primaryColor, required Color secondaryColor, required Color backgroundColor})
Create a ColorScheme instance.
AppTheme.from({Brightness brightness = Brightness.light, Color primaryColor = ColorConstants.primaryDefault, Color? secondaryColor, Color? backgroundColor})
factory

Properties

accentColor Color
read-only
backgroundColor Color
A color that typically appears behind scrollable content.
final
brightness Brightness
The overall brightness of this color scheme.
final
hashCode int
The hash code for this object.
read-onlyinherited
primaryColor Color
The color displayed most frequently across your app’s screens and components.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
secondaryColor Color
An accent color that, when used sparingly, calls attention to parts of your app.
final

Methods

copyWith({Color? primaryColor, Color? secondaryColor, Color? backgroundColor, Brightness? brightness}) AppTheme
encoded() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toThemeData() ThemeData

Operators

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

Static Methods

decode(Map<String, dynamic> jsonMap) → dynamic
of(BuildContext context) AppTheme