of static method

ItemMetaData? of(
  1. BuildContext context
)

Implementation

static ItemMetaData? of(BuildContext context) {
  final widget =
      context.dependOnInheritedWidgetOfExactType<_ItemDataWidget>()?.item;
  return widget?.data;
}