BinaryContent class final
Binary data.
- Inheritance
-
- Object
- BarcodeContent
- BinaryContent
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
launchUrlof package:url_launcher;nullwhen 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.bytesorwriter.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