EpubTheme class
Class for customizing the theme of the reader
- Annotations
-
- @JsonSerializable.new()
- @ColorConverter.new()
Constructors
- EpubTheme({Decoration? backgroundDecoration, Color? foregroundColor, required EpubThemeType themeType})
- EpubTheme.custom({required Decoration backgroundDecoration, required Color foregroundColor})
-
Custom theme option ,
factory
- EpubTheme.dark()
-
Uses dark theme, black background and white foreground color
factory
-
EpubTheme.fromJson(Map<
String, dynamic> json) -
factory
- EpubTheme.light()
-
Uses light theme, white background and black foreground color
factory
Properties
- backgroundDecoration ↔ Decoration?
-
getter/setter pair
- foregroundColor ↔ Color?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeType ↔ EpubThemeType
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited