CodeScannerController class
Controller of CodeScanner. manage screen(CodeScanner) state by calling method from instance of CodeScannerController.
Constructors
Properties
- channel ↔ MethodChannel?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isSuccessReadDataStream
→ Stream<
bool> -
Listen for isSuccessReadDataStream to confirm to be able to get read data.
no setter
-
readDataStream
→ Stream<
String> -
Listen for readDataStream to get read data.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanDataStream
→ Stream<
String> -
Listen for scanDataStream to get scan data.
no setter
Methods
-
dispose(
) → void -
lightOFF(
) → Future< void> - turn off light
-
lightON(
) → Future< void> - turn on light
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareSetMethodHandler(
) → void -
readDataFromGallery(
) → Future< void> -
startScan(
) → Future< void> - Start scan code.
-
stopScan(
) → Future< void> - Stop scan code.
-
streamData(
StreamController sc, dynamic value) → void -
toggleLight(
) → Future< void> - toggle light when light is turning on, then turn off light vice versa.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited