of static method

SlidableState? of(
  1. BuildContext context
)

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

Implementation

static SlidableState? of(BuildContext context) {
  final _SlidableScope? scope =
      context.dependOnInheritedWidgetOfExactType<_SlidableScope>();
  return scope?.state;
}