of<T> static method

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

Look up a signal by its type

Implementation

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