EpubTheme.custom constructor

EpubTheme.custom({
  1. required Color backgroundColor,
  2. required Color foregroundColor,
})

Custom theme option ,

Implementation

factory EpubTheme.custom({
  required Color backgroundColor,
  required Color foregroundColor,
}) {
  return EpubTheme._(
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
    themeType: EpubThemeType.custom,
  );
}