windowDecor function
Implementation
Widget windowDecor(String name, dynamic type, void Function()? onPressed) {
assert(type is ThemeType?, 'type should be a ThemeType');
return RawDecoratedWindowButton(
name: name,
type: type as ThemeType?,
onPressed: onPressed,
);
}