maybeFindProperty<T> static method

ModelProperty<T>? maybeFindProperty<T>(
  1. BuildContext context,
  2. Symbol key
)

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

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