icon property

IconData get icon

The icon representing this mode.

Implementation

IconData get icon {
  switch (this) {
    case ScanMode.qr:
      return Icons.qr_code_scanner_rounded;
    case ScanMode.barcode:
      return Icons.document_scanner_rounded;
    case ScanMode.pdf417:
      return Icons.qr_code_2_rounded;
    case ScanMode.passport:
      return Icons.badge_rounded;
    case ScanMode.aadhaar:
      return Icons.credit_card_rounded;
    case ScanMode.pan:
      return Icons.subtitles_rounded;
    case ScanMode.drivingLicense:
      return Icons.directions_car_rounded;
    case ScanMode.vin:
      return Icons.minor_crash_rounded;
    case ScanMode.ocr:
      return Icons.text_snippet_rounded;
    case ScanMode.face:
      return Icons.face_retouching_natural_rounded;
    case ScanMode.document:
      return Icons.crop_free_rounded;
    case ScanMode.invoice:
      return Icons.receipt_long_rounded;
    case ScanMode.receipt:
      return Icons.receipt_rounded;
    case ScanMode.businessCard:
      return Icons.contact_page_rounded;
    case ScanMode.multiCode:
      return Icons.filter_center_focus_rounded;
    case ScanMode.cheque:
      return Icons.account_balance_rounded;
    case ScanMode.idCard:
      return Icons.badge_outlined;
    case ScanMode.licensePlate:
      return Icons.directions_car_filled_rounded;
  }
}