VisualEffectSubviewContainerWithGlobalKey constructor

const VisualEffectSubviewContainerWithGlobalKey({
  1. required GlobalKey<State<StatefulWidget>> key,
  2. required Widget child,
  3. double alphaValue = 1.0,
  4. double? cornerRadius,
  5. int cornerMask = 0xf,
  6. required NSVisualEffectViewMaterial material,
  7. required NSVisualEffectViewState state,
  8. required EdgeInsets padding,
  9. VisualEffectSubviewContainerResizeEventRelay? resizeEventRelay,
})

A visual effect subview container which needs to be provided a global key.

This widget is intended to be used by the VisualEffectSubviewContainer widget. As a user of the macos_window_utils package it is recommended to use that widget instead, as it takes care of the global key creation by itself.

Implementation

const VisualEffectSubviewContainerWithGlobalKey(
    {required GlobalKey key,
    required this.child,
    this.alphaValue = 1.0,
    this.cornerRadius,
    this.cornerMask = 0xf,
    required this.material,
    required this.state,
    required this.padding,
    this.resizeEventRelay})
    : super(key: key);