addVisualEffectSubview static method
Adds a visual effect subview to the application's window and returns its ID.
This method is only available on macOS.
Implementation
static Future<int> addVisualEffectSubview(
VisualEffectSubviewProperties properties,
) async {
if (Platform.isMacOS) {
final newProperties =
properties.toMacOSWindowUtilsVisualEffectSubviewProperties();
return WindowManipulator.addVisualEffectSubview(newProperties);
}
return -1;
}