30 lines
377 B
Dart
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]!;
|
|
}
|