of static method

PrintScope of(
  1. BuildContext context
)

Implementation

static PrintScope of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<PrintScope>();
  assert(scope != null, 'No PrintScope above this print widget');
  return scope!;
}