KeyboardInsertedContent class

A class representing rich content (such as a PNG image) inserted via the system input method.

The following data is represented in this class:

  • MIME Type
  • Bytes
  • URI
Annotations

Constructors

KeyboardInsertedContent({required String mimeType, required String uri, Uint8List? data})
Creates an object to represent content that is inserted from the virtual keyboard.
const
KeyboardInsertedContent.fromJson(Map<String, dynamic> metadata)
Converts JSON received from the Flutter Engine into the Dart class.

Properties

data Uint8List?
The bytedata of the inserted content.
final
hasData bool
Convenience getter to check if bytedata is available for the inserted content.
no setter
hashCode int
The hash code for this object.
no setteroverride
mimeType String
The mime type of the inserted content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String
The URI (location) of the inserted content, usually a "content://" URI.
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.
override