I can do it in typescript like this:
let greet: 'Hey' | 'Hi' | 'Hello';
// Now greet will allow only above specified string values
greet = 'Hi'; // no Type Error here
greet = 'Welcome'; // throws a Type Error
How do I implement the equivalent in Dart?