addVisualEffectSubview static method

Future<int> addVisualEffectSubview(
  1. VisualEffectSubviewProperties properties
)

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