applyDecorations method

  1. @override
Future<void> applyDecorations(
  1. String id,
  2. List<ReaderDecoration> decorations
)
override

Apply reader decorations (highlights, bookmarks, etc.) to the current ReaderWidgetView. The id parameter is used to identify the decoration set. The decorations parameter is a list of ReaderDecoration objects to apply.

Implementation

@override
Future<void> applyDecorations(
  String id,
  List<ReaderDecoration> decorations,
) async => await currentReaderWidget?.applyDecorations(id, decorations);