MimeMessageViewer class

Viewer for mime message contents

Inheritance

Constructors

MimeMessageViewer({Key? key, required MimeMessage mimeMessage, bool adjustHeight = true, bool blockExternalImages = false, bool preferPlainText = false, bool enableDarkMode = false, String? emptyMessageText, Future mailtoDelegate(Uri mailto, MimeMessage mimeMessage)?, Future showMediaDelegate(InteractiveMediaWidget mediaViewer)?, Future<bool> urlLauncherDelegate(String url)?, int? maxImageWidth, void onWebViewCreated(InAppWebViewController controller)?, void onZoomed(InAppWebViewController controller, double zoomFactor)?, void onError(Object? exception, StackTrace? stackTrace)?, Widget? builder(BuildContext context, MimeMessage mimeMessage)?})
Creates a new mime message viewer
const

Properties

adjustHeight bool
Sets if the height of this view should be set automatically.
final
blockExternalImages bool
Defines if external images should be removed
final
builder → (Widget? Function(BuildContext context, MimeMessage mimeMessage)?)
With a builder you can take over the rendering for certain messages or mime types.
final
emptyMessageText String?
The default text that should be shown for empty messages.
final
enableDarkMode bool
Defines if dark mode should be enabled.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mailtoDelegate → (Future Function(Uri mailto, MimeMessage mimeMessage)?)
Handler for mailto: links.
final
maxImageWidth int?
The optional maximum width for inline images
final
mimeMessage → MimeMessage
The mime message that should be shown
final
onError → (void Function(Object? exception, StackTrace? stackTrace)?)
Is notified about any errors that might occur
final
onWebViewCreated → (void Function(InAppWebViewController controller)?)
Retrieve a reference to the InAppWebViewController.
final
onZoomed → (void Function(InAppWebViewController controller, double zoomFactor)?)
This callback will be called when the webview zooms out after loading.
final
preferPlainText bool
Should the plain text be used instead of the HTML text?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showMediaDelegate → (Future Function(InteractiveMediaWidget mediaViewer)?)
Handler for showing the given media widget, typically in its own screen
final
urlLauncherDelegate → (Future<bool> Function(String url)?)
Handler for any non-media URLs that the user taps on the website.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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