maybeOf<T> method

T? maybeOf<T>()

Optionally find and listen to data changes of the data with the given type from the context.

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

Implementation

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