FusionChartsExport class

An export payload handed to the application.

The wrapper does not write files, request storage permissions, or choose a destination. It returns the bytes and lets the application decide whether to save, share, preview or discard them. This is why permission_handler, path_provider and pdf are no longer dependencies.

Constructors

FusionChartsExport({required String format, required String mimeType, required String suggestedFileName, required Uint8List bytes, String? text})
const

Properties

bytes Uint8List
The payload. Always populated, including for text formats.
final
format String
Requested format, lower-case: png, jpg, svg, pdf, csv, xlsx.
final
hashCode int
The hash code for this object.
no setterinherited
lengthInBytes int
no setter
mimeType String
MIME type reported by the page, for example image/png.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestedFileName String
A file name the application may use.
final
text String?
The payload as text, for svg and csv where the page returns a string directly. null for binary formats.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromPayload(Map<String, dynamic> payload, {required String fallbackFormat, String? requestedFormat}) FusionChartsExport?
Builds an export from a validated inbound bridge payload.