maybeFindModel<T> method

T? maybeFindModel<T>(
  1. Symbol key
)

Optionally find the data of the given type from the context. Returns null if the data is not found.

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

Implementation

T? maybeFindModel<T>(Symbol key) {
  return Model.maybeOf<T>(this, key);
}