Files
stream-chat-flutter/packages/stream_chat/lib/src/location.dart
T
2021-05-28 10:35:13 +05:30

30 lines
377 B
Dart

///
enum Location {
///
usEast,
///
euWest,
///
mumbai,
///
sydney,
///
singapore,
}
///
extension LocationX on Location {
///
String get name => {
Location.usEast: 'us-east',
Location.euWest: 'dublin',
Location.mumbai: 'mumbai',
Location.sydney: 'sydney',
Location.singapore: 'singapore',
}[this]!;
}