of<T> static method

Computed<T> of<T>(
  1. BuildContext context, {
  2. bool listen = true,
})
override

Look up a signal by its type

Implementation

static Computed<T> of<T>(BuildContext context, {bool listen = true}) {
  return InheritedSignalProvider.of<ComputedProvider<T>>(
    context,
    listen: listen,
  )!
      .instance;
}