of static method

Tart of(
  1. BuildContext context
)

Implementation

static Tart of(BuildContext context) {
  final TartProvider? provider =
      context.dependOnInheritedWidgetOfExactType<TartProvider>();
  assert(provider != null, 'No TartProvider found in context');
  return provider!.tart;
}