setDefaultStyles method

void setDefaultStyles(
  1. String masterCss, {
  2. bool reload = true,
})

Overrides the "master.css" file contents with the contents of masterCss. reload specifies the necessity of reloading book's chapters (provided the book is opened). Pass "false" if the book is not opened yet.

Implementation

void setDefaultStyles(String masterCss, {bool reload = true}) {
  Pointer<BufferString> bs = BufferString.fromDartString(masterCss);

  setDefaultStylesNative?.call(_sdk, bs, reload);

  freeBufferString(bs);
}