BinaryContent class final

Binary data.

Inheritance

Constructors

BinaryContent(Uint8List bytes)
Creates binary content.
const

Properties

bytes → Uint8List
The bytes.
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → Uri?
A link that opens this content in the app made for it, for launchUrl of package:url_launcher; null when there is none.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPayload() → String
Always throws UnsupportedError: binary data has no text. Encode bytes with BarcodeWriter.encodeBytes, BarcodeView.bytes or writer.encodeContent(content).
override
toString() → String
A string representation of this object.
override
validate() → List<ContentIssue>
The problems that keep toPayload from building this value, such as an empty network name or a latitude out of range. Empty when the value can be built. For forms: show each ContentIssue.message next to its ContentIssue.field.
override

Operators

operator ==(Object other) → bool
The equality operator.
override