toScanDirection method

ScanDirection toScanDirection()

Implementation

ScanDirection toScanDirection() {
  switch (this) {
    case 'FORWARD':
      return ScanDirection.forward;
    case 'BACKWARD':
      return ScanDirection.backward;
  }
  throw Exception('$this is not known in enum ScanDirection');
}