of static method

FlyStyle? of(
  1. BuildContext context
)

Get the nearest FlyStyleContext from the widget tree

Returns null if no FlyStyleContext is found in the tree.

Implementation

static FlyStyle? of(BuildContext context) {
  final inherited = context
      .dependOnInheritedWidgetOfExactType<FlyStyleContext>();
  return inherited?.style;
}