protocols.dart 293 B

1234567891011121314
  1. enum ProtocolType {
  2. USER,
  3. VIP
  4. }
  5. class Protocols {
  6. static Map<ProtocolType, String> protocols = {
  7. ProtocolType.USER : 'Here is user protocol',
  8. ProtocolType.VIP: 'Welcome ! Here is VIP protocol',
  9. };
  10. static String getType(ProtocolType type) => protocols[type];
  11. }