Quickstart
Convert a File (mobile/desktop)
convertFile uses dart:io File and uploads the document by multipart to POST /convert. Only available on platforms with filesystem access (not Flutter Web).
Convert bytes (recommended for Flutter Web)
convertBytes receives a Uint8Array (for example, from image_picker or file_picker) and works on all platforms, including Web:
In Flutter Web there is no dart:io.File, so convertBytes is the recommended route there. On mobile/desktop you can use either of the two depending on where the file comes from.
Convert from URL
ConvertResult is a sealed class: use if (result is MarkdownResult) or an exhaustive switch to unpack it. See Reference.
Siguiente paso