meeting_mode.dart 490 B

1234567891011121314151617181920212223
  1. import 'package:get/get.dart';
  2. enum MeetingMode { online, offline }
  3. extension MeetingModeExt on MeetingMode {
  4. String getName() {
  5. switch (this) {
  6. case MeetingMode.online:
  7. return 'meeting_detail_mode_online'.tr;
  8. case MeetingMode.offline:
  9. return 'meeting_detail_mode_offline'.tr;
  10. }
  11. }
  12. String getKey() {
  13. switch (this) {
  14. case MeetingMode.online:
  15. return 'online';
  16. case MeetingMode.offline:
  17. return 'offline';
  18. }
  19. }
  20. }