OADListener mixin

since 0.0.7

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBlockWrite(String deviceId, Uint8List bytes) → void
升级过程中每成功发送1次数据都会回调该方法
onFinished(String deviceId, int nBytes, int milliseconds) → void
  • deviceId
  • nBytes 升级所需发送的总字节数
  • milliseconds 升级完成耗时(ms)
  • onInterrupted(String deviceId, int iBytes, int nBytes, int milliseconds) → void
  • deviceId
  • iBytes 已发送字节数
  • nBytes 升级所需发送的总字节数
  • milliseconds 从开始升级到升级中断的时间(ms)
  • onPrepared(String deviceId) → void
    onProgressChanged(String deviceId, int iBytes, int nBytes, int milliseconds) → void
  • deviceId
  • iBytes 已发送字节数
  • nBytes 升级所需发送的总字节数
  • milliseconds 从开始升级到当前进度的时间(ms)
  • onStatusChange(String deviceId, int status) → void
    该回调只对2640 R2 OAD有效
    toString() String
    A string representation of this object.
    inherited

    Operators

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