find<T> method

T find<T>()

Find the data of the given type from the context. Does not listen to the data changes.

  • T The type of the data.
  • context The build context.

Implementation

T find<T>() {
  assert(state.mounted, 'State is not mounted');
  return Data.find<T>(state.context);
}