maybeFind<T> method

T? maybeFind<T>()

Optionally find the data of the given type from the context.

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

Implementation

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