maybeModel<T> method

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

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.
  • key The data key.

Implementation

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