UnimplementedMobileReaderSdk class

Placeholder implementation used until the platform channels land.

Every method throws UnimplementedError; the events stream is an empty broadcast stream. This exists so the public façade type can be imported and referenced (and tested for its contract) without requiring native bridge code in this branch.

Inheritance

Properties

events → Stream<ReaderEvent>
Single unified event stream for the SDK. See ReaderEvent for the shape; see ReaderEventType for the list of events.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelTransaction() → Future<void>
Cancel the in-progress transaction. Emits a cancelled event and causes the startTransaction future to complete with a TransactionResultStatus.cancelled result.
override
connect(ReaderDevice reader) → Future<void>
Connect to a previously-discovered reader. Emits connecting then connected on success; failed (carrying a ReaderError) on failure.
override
disconnect() → Future<void>
Disconnect from the currently-connected reader. Emits disconnected on success. Safe to call when nothing is connected; it is a no-op in that case.
override
discoverReaders({Duration? timeout}) → Future<void>
Begin scanning for nearby readers. Discovered readers are emitted as ReaderEventType.readerDiscovered events on events; a terminal ReaderEventType.discoveryCompleted event marks the end of the scan window.
override
getStatus() → Future<ReaderStatus>
Snapshot of the current SDK / reader state.
override
initialize(ReaderConfig config) → Future<void>
Initialize the SDK with POS-supplied configuration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startTransaction(TransactionRequest request) → Future<TransactionResult>
Begin a transaction. Emits the reader prompts and card-data events on events; the returned future completes with the terminal TransactionResult once the gateway response (via em-api) is known or the operation otherwise resolves.
override
toString() → String
A string representation of this object.
inherited

Operators

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