maybeFindMessenger<T> method
T?
maybeFindMessenger<T>()
Find the DataMessenger that holds all of the data with the given type from the context.
T
The type of the data.- context The build context.
Implementation
T? maybeFindMessenger<T>() {
assert(state.mounted, 'State is not mounted');
return Data.maybeFindMessenger<T>(state.context);
}