writeConst method
writes a constant
Implementation
void writeConst({
required String type,
required String name,
required String value,
}) {
// static const field is not supported inside structs
write("static $type get $name => $value;");
}