of static method

Implementation

static RenderSlidable of(BuildContext context) {
  final slidableRender =
      context.findAncestorRenderObjectOfType<RenderSlidable>();

  assert(
    slidableRender != null,
    'RenderSlideAction must be a descendant of RenderSlidable.'
    'Typically, it means [SlideActionPanel] must be a descendant of [SlidablePanel].',
  );

  return slidableRender!;
}