buildNativeGlass abstract method

Widget? buildNativeGlass({
  1. required Glass glass,
  2. required GlassShape shape,
  3. required Widget child,
  4. String? morphId,
  5. bool isPressed = false,
})

Builds a platform view backed by the OS's own glass material.

Returns null when this platform cannot render native glass for the given arguments, which tells the façade to use the shader path instead. Returning null is a normal outcome, not an error.

Implementation

Widget? buildNativeGlass({
  required Glass glass,
  required GlassShape shape,
  required Widget child,
  String? morphId,
  bool isPressed = false,
});