of static method

SlidableData? of(
  1. BuildContext context
)

The data from the closest instance of this class that encloses the given context.

Implementation

static SlidableData? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<SlidableData>();
}