maybeFindProperty method

ModelProperty<T>? maybeFindProperty(
  1. BuildContext context
)

Optionally find the property 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

ModelProperty<T>? maybeFindProperty(BuildContext context) {
  return MultiModel.maybeFindProperty<T>(context, key);
}