JsonTheme class

Create a Theme by json

Implemented types

Constructors

JsonTheme(String name, Map<String, dynamic> json)

Properties

hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
getter/setter pair
jsonList Map<int, Map<String, dynamic>>
getter/setter pair
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromHex(String hexString) Color
Convert hex to color
getBackgroundColor() Color
BackgroundColor
override
getName() String
Theme name
override
getThemeByLevel(int level) Map<String, dynamic>?
Get theme by level
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHex(Color color, {bool includeHashSign = false, bool enableAlpha = true, bool toUpperCase = true}) String
Convert color to hex
toString() String
A string representation of this object.
inherited

Operators

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