windowDecor function

Widget windowDecor(
  1. String name,
  2. dynamic type,
  3. void onPressed()?
)

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,
  );
}