rememberLogExporter

fun rememberLogExporter(contentProvider: suspend () -> String): (fileName: String) -> Unit(source)

Remembers a launcher that writes contentProvider's text to a user-chosen file and toasts the outcome. Blank text is reported as a failure rather than written as an empty file.