How to give predetermine string value.
Something like this.
class Button extends StatelessWidget {
final String type;
const Button({
this.type = 'raised' | 'text',
});
}
That give me the error.
In constant expressions, operands of this operator must be of type 'bool' or 'int'.
How to give the parameter options to only be those predetermine string values.