ImageImportResult class
The outcome of a host-owned user-image import.
A successful import returns a document-ready, host-resolvable source
reference. The editor treats sourceRef as opaque: it may be media:,
asset:, an HTTPS URL, or another host-defined scheme.
Constructors
- ImageImportResult.cancelled()
-
No image was selected. The editor must not create a document edit.
const
- ImageImportResult.failure(String errorMessage)
-
A user-safe message suitable for editor UI feedback.
factory
- ImageImportResult.success(String sourceRef)
-
factory
Properties
- cancelled → bool
-
final
- errorMessage → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceRef → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited