of static method

SafaehSheet of(
  1. BuildContext context
)

Implementation

static SafaehSheet of(BuildContext context) {
  final scope = context
      .dependOnInheritedWidgetOfExactType<_SafaehSheetScope>();
  if (scope == null) {
    throw StateError('SafaehSheet.of() called with no showSafaeh ancestor.');
  }
  return scope.sheet;
}