Frontend  0.7.1
Loading...
Searching...
No Matches
FakeDecupService Class Reference
Inheritance diagram for FakeDecupService:
Collaboration diagram for FakeDecupService:

Public Member Functions

 FakeDecupService (this.ref)
override Future close ([int? closeCode, String? closeReason])
override void call (DecupCommand command)

Public Attributes

final ProviderContainer ref
final _decoderId
 Random ID.
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 DecupService
int get closeCode
String get closeReason
Future< void > get ready
Stream< Uint8List > get stream

Additional Inherited Members

Static Public Attributes inherited from DecupService
static const int ack = 0x1C
static const int nak = 0xFC

Constructor & Destructor Documentation

◆ FakeDecupService()

FakeDecupService::FakeDecupService ( this. ref)
inline

Member Function Documentation

◆ call()

override void FakeDecupService::call ( DecupCommand command)
inline

◆ close()

override Future FakeDecupService::close ( )
inline

Member Data Documentation

◆ _controller

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

◆ _decoderId

final FakeDecupService::_decoderId
Initial value:
= () {
final shuffledIds = mxDecoderIds.toList();
shuffledIds.shuffle();
return shuffledIds.first;
}()
final mxDecoderIds
MX decoder IDs.
Definition mx_decoder_ids.dart:26

◆ closeCode

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

◆ closeReason

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

◆ ready

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

◆ ref

final ProviderContainer FakeDecupService::ref

◆ stream

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

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