CsafeCommand class

Represents a CSAFE command with all the parameters needed to send to a device

Some understanding of the CSAFE spec may be required to make custom commands. TL;DR commands have a 8-bit (1 byte) identifier. One of these bits is used to divide commands into "long" (i.e. has additional parameters/data with it) and "short" (command only) types

Implemented types
Implementers

Constructors

CsafeCommand(int commandId)
CsafeCommand.long(int commandId, int? byteCount, ByteSerializable data)
CsafeCommand.short(int commandId)

Properties

byteLength int
no setteroverride
command CsafeCommandIdentifier
getter/setter pair
data CsafeDataStructure?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CsafeCommandType
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
override
toString() String
A string representation of this object.
inherited
validateData(ByteSerializable data, List<Validator> validators, {dynamic shouldThrow = false}) bool

Operators

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