glassMorphic method

Widget glassMorphic({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. BoxBorder? border,
  5. BorderRadius? borderRadius,
  6. double? opacity = 0.05,
  7. double? shadowStrength = 4,
  8. double? circularRadius = 10,
  9. double? blur = 5,
})

Extension method to directly access VxGlassmorphic with any widget without wrapping or with dot operator.

Implementation

Widget glassMorphic({
  Key? key,
  double? width,
  double? height,
  BoxBorder? border,
  BorderRadius? borderRadius,
  double? opacity = 0.05,
  double? shadowStrength = 4,
  double? circularRadius = 10,
  double? blur = 5,
}) =>
    VxGlassmorphic(
      blur: blur,
      border: border,
      borderRadius: borderRadius,
      width: width,
      height: height,
      key: key,
      opacity: opacity,
      shadowStrength: shadowStrength,
      circularRadius: circularRadius,
      child: this,
    );