maybeOf static method

BorderRadius? maybeOf(
  1. BuildContext context
)

Retrieves the corners of the nearest enclosing section row, or null when the widget is not inside a grouped section.

Implementation

static BorderRadius? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<InheritedGlassSectionRow>()
      ?.corners;
}