Merman class
Discovery and one-shot facade for Flutter and standalone Dart hosts.
This object owns no native engine token. Every execution uses a fresh deterministic engine and closes it before returning. Use MermanEngine when options or constructor services should be reused across calls.
Constructors
- Merman.fromDynamicLibrary(DynamicLibrary library, {String? expectedPackageVersion})
-
factory
- Merman.open()
-
Opens the package-owned library and requires its exact package contract.
factory
- Merman.openPath(String path)
-
Opens a host-owned library that implements the current ABI contract.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- packageVersion → String
-
Native package version reported by the discovered table.
no setter
- runtimeCatalog → MermanRuntimeCatalog
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analysisFactsJson(
String source, {String? optionsJson}) → Map< String, Object?> -
analyzeDocumentFactsJson(
String source, {required String uri, String? optionsJson}) → Map< String, Object?> -
analyzeDocumentJson(
String source, {required String uri, String? optionsJson}) → Map< String, Object?> -
analyzeJson(
String source, {String? optionsJson}) → Map< String, Object?> -
asciiCapabilities(
) → List< MermanAsciiCapability> - Returns ASCII rendering capability records for the loaded artifact.
-
createOperationControl(
{Duration? timeout}) → MermanOperationControl - Creates a control with an optional relative monotonic timeout.
-
diagramFamilyCapabilities(
) → List< MermanDiagramFamilyCapability> - Returns parser/render capability records for the loaded artifact.
-
execute(
MermanOperation operation, String source, {String? uri, String? optionsJson, MermanOperationControl? control}) → MermanOperationResult -
layoutJson(
String source, {String? optionsJson}) → Map< String, Object?> -
lintRuleCatalog(
) → List< MermanLintRuleCatalogEntry> - Returns governed lint rule metadata for the loaded artifact.
-
metadataJson(
String id) → String - Returns the exact JSON payload for any callable metadata ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseJson(
String source, {String? optionsJson}) → Map< String, Object?> -
presentationCatalog(
) → MermanPresentationCatalog - Returns artifact-owned presentation theme and profile metadata.
-
renderAscii(
String source, {String? optionsJson}) → String -
renderJpeg(
String source, {String? optionsJson}) → Uint8List -
renderJpegResult(
String source, {String? optionsJson}) → MermanOperationResult -
renderPdf(
String source, {String? optionsJson}) → Uint8List -
renderPdfResult(
String source, {String? optionsJson}) → MermanOperationResult -
renderPng(
String source, {String? optionsJson}) → Uint8List -
renderPngResult(
String source, {String? optionsJson}) → MermanOperationResult -
renderSvg(
String source, {String? optionsJson}) → String -
supportedDiagrams(
) → List< String> - Returns diagram types exposed by the loaded native artifact.
-
supportedThemes(
) → List< String> - Returns built-in Mermaid theme names.
-
svgPlanJson(
String source, {String? optionsJson}) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String source, {String? optionsJson}) → MermanValidationResult
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited