refresh method

Future<void> refresh()

UncompleteDocumentation

Implementation

Future<void> refresh() async {
  if (is_loading) {
    return;
  }
  setState(() {
    is_loading = true;
    markdownFlutterContentGeneralFramework =
        MarkdownFlutterContentGeneralFramework.empty();
  });
  await Future(() async {
    await textToSpeech.initialized();
    markdownFlutterContentGeneralFramework = await widget
        .markdownFlutterContentGeneralFrameworkBuilder(context, this);
  });
  setState(() {
    is_loading = false;
  });
}