Frontend  0.5.1
Loading...
Searching...
No Matches
Inheritance diagram for FakeOtaService:
Collaboration diagram for FakeOtaService:

Public Member Functions

override void write (Uint8List chunk) async

Public Attributes

final _controller = StreamController<Uint8List>()
override int get closeCode => _controller.isClosed ? 1005 : null
override String get closeReason => closeCode != null ? 'Timeout' : null
override Future< void > get ready => Future.delayed(const Duration(seconds: 1))
override Stream< Uint8List > get stream => _controller.stream
Public Attributes inherited from OtaService
int get closeCode
String get closeReason
Future< void > get ready
Stream< Uint8List > get stream

Additional Inherited Members

Static Public Attributes inherited from OtaService
static const int ack = 0x06
static const int nak = 0x15

Member Function Documentation

◆ write()

override void FakeOtaService::write ( Uint8List chunk)
inline

Member Data Documentation

◆ _controller

final FakeOtaService::_controller = StreamController<Uint8List>()

◆ closeCode

override int get FakeOtaService::closeCode => _controller.isClosed ? 1005 : null

◆ closeReason

override String get FakeOtaService::closeReason => closeCode != null ? 'Timeout' : null

◆ ready

override Future<void> get FakeOtaService::ready => Future.delayed(const Duration(seconds: 1))

◆ stream

override Stream<Uint8List> get FakeOtaService::stream => _controller.stream

The documentation for this class was generated from the following file: